mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
f08b2e0277
There appears to be a glitch in the test suite such that running `bundle exec rake travis` passes locally without executing the DO tests but they are running on Travis itself. So fed up playing whackamole with failures. They are off until the broken code is fixed. See https://github.com/fog/fog/pull/3304 This reverts commit9b7b8fd490
. This reverts commitfa9254ba8d
.
25 lines
560 B
Ruby
25 lines
560 B
Ruby
Shindo.tests('Fog::Compute[:digitalocean] | power on/off/shutdown requests',
|
|
['digitalocean', 'compute']) do
|
|
|
|
service = Fog::Compute[:digitalocean]
|
|
server = fog_test_server
|
|
|
|
tests('success') do
|
|
|
|
test('#power_off_server') do
|
|
service.power_off_server(server.id).body['status'] == 'OK'
|
|
end
|
|
|
|
test('#power_on_server') do
|
|
service.power_on_server(server.id).body['status'] == 'OK'
|
|
end
|
|
|
|
test('#shutdown_server') do
|
|
service.shutdown_server(server.id).body['status'] == 'OK'
|
|
end
|
|
|
|
server.start
|
|
|
|
end
|
|
|
|
end
|