[compute|glesys] fix format for start vs stop

This commit is contained in:
geemus 2011-09-08 15:52:43 -05:00
parent d5ba0489ea
commit 5f7c5c6c15
2 changed files with 14 additions and 4 deletions

View File

@ -107,16 +107,26 @@ class Glesys
}
}
START_STOP = {
START = {
'arguments' => {
'serverid' => String
},
'status' => {
'status' => {
'code' => String,
'text' => String
}
}
STOP = {
'arguments' => {
'serverid' => String,
'type' => String
},
'status' => {
'code' => String,
'text' => String
}
}
end
module Ips

View File

@ -46,7 +46,7 @@ Shindo.tests('Fog::Compute[:glesys] | server requests', ['glesys']) do
Fog::Compute[:glesys].server_status(@serverid).body['response']
end
tests("#stop(:serverid => #{@serverid})").formats(Glesys::Compute::Formats::Servers::START_STOP) do
tests("#stop(:serverid => #{@serverid})").formats(Glesys::Compute::Formats::Servers::STOP) do
pending if Fog.mocking?
Fog::Compute[:glesys].stop(:serverid => @serverid).body['response']
end
@ -58,7 +58,7 @@ Shindo.tests('Fog::Compute[:glesys] | server requests', ['glesys']) do
s.wait_for { s.state == 'stopped' }
end
tests("#start(:serverid => #{@serverid})").formats(Glesys::Compute::Formats::Servers::START_STOP) do
tests("#start(:serverid => #{@serverid})").formats(Glesys::Compute::Formats::Servers::START) do
pending if Fog.mocking?
Fog::Compute[:glesys].start(:serverid => @serverid).body['response']
end