[glesys|compute] fixed tests due to changes in the api

This commit is contained in:
Anton Lindström 2011-11-14 18:47:55 +01:00
parent 2bf79e8dae
commit 0d926a1a47
2 changed files with 5 additions and 3 deletions

View File

@ -7,7 +7,9 @@ class Glesys
'arguments' => [],
'servers' => [{
'serverid' => String,
'hostname' => String
'hostname' => String,
'datacenter' => String,
'platform' => String,
}],
'status' => {
'code' => String,
@ -144,6 +146,7 @@ class Glesys
'platform' => String,
'ip' => String,
'version' => String,
'PTR' => String,
}],
'status' => {
'code' => String,
@ -172,7 +175,6 @@ class Glesys
IPLIST_CATCH_RELEASE = {
'arguments' => {
'ipaddress' => String,
'ipversion'=> String,
},
'status' => {
'code' => String,

View File

@ -1,7 +1,7 @@
Shindo.tests('Fog::Compute[:glesys] | server requests', ['glesys']) do
@serverid = nil
@hostname = "fog.#{Time.now.to_i}"
@hostname = "fog-#{Time.now.to_i}"
@create = ":hostname => #@hostname, :rootpw => 'pw#{Time.now.to_i}', "+
":datacenter => 'Falkenberg', :platform => 'Xen', :template => 'Debian-6 x64', "+