1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/digitalocean/requests/compute/destroy_server_tests.rb

18 lines
387 B
Ruby
Raw Normal View History

Shindo.tests('Fog::Compute[:digitalocean] | reboot_server request', ['digitalocean', 'compute']) do
service = Fog::Compute[:digitalocean]
2013-02-26 13:27:07 -05:00
data = fog_test_server
tests('success') do
test('#reboot_server') do
sleep 120
data.body['status'] == 'OK' and \
(service.destroy_server(data.body['droplet']['id']).body['status'] == 'OK')
end
end
end