1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[digitalocean|compute] string fixes

This commit is contained in:
Sergio Rubio 2013-02-26 21:11:45 +01:00
parent c1e518c3b5
commit 9a09b76159

View file

@ -1,14 +1,12 @@
Shindo.tests('Fog::Compute[:digitalocean] | reboot_server request', ['digitalocean', 'compute']) do
Shindo.tests('Fog::Compute[:digitalocean] | destroy_server request', ['digitalocean', 'compute']) do
service = Fog::Compute[:digitalocean]
data = fog_test_server
server = 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')
test('#destroy_server') do
service.destroy_server(server.id).body['status'] == 'OK'
end
end