mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
20 lines
443 B
Ruby
20 lines
443 B
Ruby
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
|
|
server.wait_for { server.state == 'off' }
|
|
server.state == 'off'
|
|
end
|
|
end
|
|
|
|
end
|
|
|
|
|
|
end
|