2013-02-06 15:35:53 -05:00
|
|
|
Shindo.tests('Fog::Compute[:digitalocean] | power_cycle_server request', ['digitalocean', 'compute']) do
|
|
|
|
|
|
|
|
server = fog_test_server
|
|
|
|
|
|
|
|
tests('success') do
|
|
|
|
|
|
|
|
tests('#power_cycle_server') do
|
|
|
|
test('returns 200') do
|
|
|
|
service.power_cycle_server(server.id).status == 200
|
|
|
|
end
|
|
|
|
test('state is off') do
|
2013-03-21 08:28:41 -04:00
|
|
|
server.wait_for { server.state == 'off' }
|
|
|
|
server.state == 'off'
|
2013-02-06 15:35:53 -05:00
|
|
|
end
|
|
|
|
end
|
2014-05-26 09:44:18 -04:00
|
|
|
|
2013-02-06 15:35:53 -05:00
|
|
|
end
|
2014-05-26 09:44:18 -04:00
|
|
|
|
2013-02-06 15:35:53 -05:00
|
|
|
|
|
|
|
end
|