1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[glesys|compute] fix test formats and whitespaces

This commit is contained in:
Anton Lindström 2011-11-29 19:00:45 +01:00
parent 52b379629f
commit 6f1b9a3688
3 changed files with 92 additions and 69 deletions

View file

@ -4,7 +4,9 @@ class Glesys
module Servers
LIST = {
'arguments' => [],
'debug' => {
'input' => []
},
'servers' => [{
'serverid' => String,
'hostname' => String,
@ -18,7 +20,8 @@ class Glesys
}
CREATE = {
'arguments' => {
'debug' => {
'input' => {
"rootpw" => String,
"disksize" => String,
"memorysize" => String,
@ -29,6 +32,7 @@ class Glesys
"description" => String,
"hostname" => String,
"platform" => String
}
},
'server' => {
'serverid' => String,
@ -46,9 +50,11 @@ class Glesys
}
DESTROY = {
'arguments' => {
'debug' => {
'input' => {
'serverid' => String,
'keepip' => String,
}
},
'status' => {
'code' => String,
@ -57,8 +63,10 @@ class Glesys
}
DETAILS = {
'arguments' => {
'debug' => {
'input' => {
'serverid' => String
}
},
'server' => {
'managedhosting' => String,
@ -67,6 +75,7 @@ class Glesys
'timeperiod' => String,
'currency' => String
},
'serverid' => String,
'datacenter' => String,
'memory' => String,
'cpucores' => String,
@ -89,8 +98,10 @@ class Glesys
}
STATUS = {
'arguments' => {
'debug' => {
'input' => {
'serverid' => String
}
},
'server' => {
'memory' => String,
@ -110,8 +121,10 @@ class Glesys
}
START = {
'arguments' => {
'debug' => {
'input' => {
'serverid' => String
}
},
'status' => {
'code' => String,
@ -120,9 +133,11 @@ class Glesys
}
STOP = {
'arguments' => {
'debug' => {
'input' => {
'serverid' => String,
'type' => String
}
},
'status' => {
'code' => String,
@ -134,7 +149,9 @@ class Glesys
module Ips
IPLIST = {
'arguments' => [],
'debug' => {
'input' => []
},
'iplist' => [{
'price' => {
'amount' => String,
@ -155,10 +172,12 @@ class Glesys
}
IPLIST_ALL = {
'arguments' => {
'debug' => {
'input' => {
'datacenter' => String,
'ipversion' => String,
'platform' => String
}
},
'iplist' => [],
'status' => {
@ -173,8 +192,10 @@ class Glesys
}
IPLIST_CATCH_RELEASE = {
'arguments' => {
'debug' => {
'input' => {
'ipaddress' => String,
}
},
'status' => {
'code' => String,
@ -186,7 +207,9 @@ class Glesys
module Templates
LIST = {
'arguments' => [],
'debug' => {
'input' => []
},
'templates' => {
'Xen' => [{
'name' => String,

View file

@ -10,7 +10,7 @@ Shindo.tests('Fog::Compute[:glesys] | ip requests', ['glesys']) do
Fog::Compute[:glesys].ip_list_own.body['response']
end
tests("#ip_list_free(:datcenter => 'Falkenberg, :platform => 'Xen', :ipversion => 4)"
tests("#ip_list_free(:datacenter => 'Falkenberg, :platform => 'Xen', :ipversion => 4)"
).formats(Glesys::Compute::Formats::Ips::IPLIST_ALL) do
pending if Fog.mocking?
ips = Fog::Compute[:glesys].ip_list_free(