1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/google/models/compute/server_tests.rb
2013-04-30 18:35:02 -07:00

24 lines
519 B
Ruby

Shindo.tests("Fog::Compute[:google] | server model", ['google']) do
tests('servers') do
@instance = nil
test('#bootstrap') do
@instance = Fog::Compute[:google].servers.bootstrap
@instance.ready?
end
test('#sshable?') do
@instance.wait_for { sshable? }
@instance.sshable?
end
test('#ssh') do
@instance.ssh("uname") == "Linux"
end
test('#destroy') do
response = @instance.destroy
response.body['operationType'] == 'delete'
end
end
end