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:
parent
c1e518c3b5
commit
9a09b76159
1 changed files with 4 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue