mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
ef9a9697ab
Done with `rubocop --auto-correct --only TrailingWhitespace`
20 lines
433 B
Ruby
20 lines
433 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
|