mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
24 lines
519 B
Ruby
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
|