mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
7ee38ee2f6
Better handling of power state related tests
14 lines
285 B
Ruby
14 lines
285 B
Ruby
Shindo.tests('Fog::Compute[:digitalocean] | reboot_server request', ['digitalocean', 'compute']) do
|
|
|
|
server = fog_test_server
|
|
|
|
tests('success') do
|
|
|
|
tests('#reboot_server').succeeds do
|
|
service.reboot_server(server.id).body['status'] == 'OK'
|
|
end
|
|
|
|
end
|
|
|
|
|
|
end
|