mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[glesys] API change, new attribute :bandwidth added
This commit is contained in:
parent
26ffbf087c
commit
6a95a0f6d6
3 changed files with 10 additions and 4 deletions
|
@ -14,6 +14,7 @@ module Fog
|
||||||
attribute :memorysize
|
attribute :memorysize
|
||||||
attribute :disksize
|
attribute :disksize
|
||||||
attribute :transfer
|
attribute :transfer
|
||||||
|
attribute :bandwidth
|
||||||
attribute :uptime
|
attribute :uptime
|
||||||
attribute :templatename
|
attribute :templatename
|
||||||
attribute :managedhosting
|
attribute :managedhosting
|
||||||
|
@ -65,6 +66,7 @@ module Fog
|
||||||
:cpucores => cpucores || "1",
|
:cpucores => cpucores || "1",
|
||||||
:rootpassword => rootpassword,
|
:rootpassword => rootpassword,
|
||||||
:transfer => transfer || "500",
|
:transfer => transfer || "500",
|
||||||
|
:bandwidth => bandwidth || "10",
|
||||||
}
|
}
|
||||||
|
|
||||||
# optional options when creating a server:
|
# optional options when creating a server:
|
||||||
|
|
|
@ -37,6 +37,7 @@ class Glesys
|
||||||
'memorysize' => Integer,
|
'memorysize' => Integer,
|
||||||
'cpucores' => Integer,
|
'cpucores' => Integer,
|
||||||
'transfer' => Integer,
|
'transfer' => Integer,
|
||||||
|
'bandwidth' => Integer,
|
||||||
'templatename' => String,
|
'templatename' => String,
|
||||||
'iplist' => [{
|
'iplist' => [{
|
||||||
'cost' => Integer,
|
'cost' => Integer,
|
||||||
|
@ -79,6 +80,7 @@ class Glesys
|
||||||
'memorysize' => String,
|
'memorysize' => String,
|
||||||
'cpucores' => String,
|
'cpucores' => String,
|
||||||
'transfer' => String,
|
'transfer' => String,
|
||||||
|
'bandwidth' => String,
|
||||||
'description' => String
|
'description' => String
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,11 +5,11 @@ Shindo.tests('Fog::Compute[:glesys] | server requests', ['glesys']) do
|
||||||
|
|
||||||
@create = ":hostname => #@hostname, :rootpassword => 'pw#{Time.now.to_i}', "+
|
@create = ":hostname => #@hostname, :rootpassword => 'pw#{Time.now.to_i}', "+
|
||||||
":datacenter => 'Falkenberg', :platform => 'Xen', :templatename => 'Debian-6 x64', "+
|
":datacenter => 'Falkenberg', :platform => 'Xen', :templatename => 'Debian-6 x64', "+
|
||||||
":disksize => '10', :memorysize => '512', :cpucores => '1', :transfer => '500'"
|
":disksize => '10', :memorysize => '512', :cpucores => '1', :transfer => '500', :bandwidth => '10'"
|
||||||
|
|
||||||
@create_vz = ":hostname => #@hostname, :rootpassword => 'pw#{Time.now.to_i}', "+
|
@create_vz = ":hostname => #@hostname, :rootpassword => 'pw#{Time.now.to_i}', "+
|
||||||
":datacenter => 'Stockholm', :platform => 'OpenVZ', :templatename => 'Debian 6.0 64-bit', "+
|
":datacenter => 'Stockholm', :platform => 'OpenVZ', :templatename => 'Debian 6.0 64-bit', "+
|
||||||
":disksize => '10', :memorysize => '256', :cpucores => '2', :transfer => '500'"
|
":disksize => '10', :memorysize => '256', :cpucores => '2', :transfer => '500', :bandwidth => '10'"
|
||||||
|
|
||||||
tests('success') do
|
tests('success') do
|
||||||
|
|
||||||
|
@ -29,7 +29,8 @@ Shindo.tests('Fog::Compute[:glesys] | server requests', ['glesys']) do
|
||||||
:disksize => "10",
|
:disksize => "10",
|
||||||
:memorysize => "512",
|
:memorysize => "512",
|
||||||
:cpucores => "1",
|
:cpucores => "1",
|
||||||
:transfer => "500"
|
:transfer => "500",
|
||||||
|
:bandwidth => "10"
|
||||||
)
|
)
|
||||||
|
|
||||||
@serverid = vm.body['response']['server']['serverid']
|
@serverid = vm.body['response']['server']['serverid']
|
||||||
|
@ -89,7 +90,8 @@ Shindo.tests('Fog::Compute[:glesys] | server requests', ['glesys']) do
|
||||||
:disksize => "10",
|
:disksize => "10",
|
||||||
:memorysize => "256",
|
:memorysize => "256",
|
||||||
:cpucores => "2",
|
:cpucores => "2",
|
||||||
:transfer => "500"
|
:transfer => "500",
|
||||||
|
:bandwidth => "10"
|
||||||
)
|
)
|
||||||
|
|
||||||
@serverid = vm.body['response']['server']['serverid']
|
@serverid = vm.body['response']['server']['serverid']
|
||||||
|
|
Loading…
Add table
Reference in a new issue