2013-04-29 16:55:38 -07:00
|
|
|
Shindo.tests("Fog::Compute[:google] | server model", ['google']) do
|
|
|
|
|
2013-04-29 19:41:08 -07:00
|
|
|
tests('servers') do
|
|
|
|
@instance = nil
|
|
|
|
test('#bootstrap') do
|
|
|
|
@instance = Fog::Compute[:google].servers.bootstrap
|
|
|
|
@instance.ready?
|
2013-04-29 16:55:38 -07:00
|
|
|
end
|
|
|
|
|
2013-04-30 18:11:22 -07:00
|
|
|
test('#sshable?') do
|
|
|
|
@instance.sshable?
|
|
|
|
end
|
|
|
|
|
|
|
|
test('#ssh') do
|
|
|
|
@instance.ssh("uname") == "Linux"
|
|
|
|
end
|
|
|
|
|
2013-04-29 16:55:38 -07:00
|
|
|
test('#destroy') do
|
2013-04-29 19:41:08 -07:00
|
|
|
response = @instance.destroy
|
|
|
|
response.body['operationType'] == 'delete'
|
2013-04-29 16:55:38 -07:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|