mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
14 lines
350 B
Ruby
14 lines
350 B
Ruby
Shindo.tests('Fog::Compute[:digitalocean] | destroy_server request', ['digitalocean', 'compute']) do
|
|
|
|
service = Fog::Compute[:digitalocean]
|
|
server = fog_test_server
|
|
|
|
tests('success') do
|
|
|
|
test('#destroy_server') do
|
|
service.destroy_server(server.id).body['status'] == 'OK'
|
|
service.servers.get(server.id) == nil
|
|
end
|
|
|
|
end
|
|
end
|