2012-12-24 03:41:55 +00:00
|
|
|
Shindo.tests("Fog::Compute[:brightbox] | Server model", ["brightbox"]) do
|
|
|
|
pending if Fog.mocking?
|
|
|
|
|
|
|
|
tests("success") do
|
2013-11-27 15:36:19 +00:00
|
|
|
@server = Brightbox::Compute::TestSupport.get_test_server
|
|
|
|
server_id = @server.id
|
2012-12-24 03:41:55 +00:00
|
|
|
|
|
|
|
tests("#dns_name") do
|
|
|
|
returns("public.#{@server.fqdn}") { @server.dns_name }
|
|
|
|
end
|
|
|
|
|
2013-11-27 15:36:19 +00:00
|
|
|
tests("#mapping_identity") do
|
|
|
|
first_interface_id = @server.interfaces.first["id"]
|
|
|
|
returns(first_interface_id) { @server.mapping_identity }
|
2012-12-24 03:41:55 +00:00
|
|
|
end
|
2013-11-27 15:36:19 +00:00
|
|
|
|
|
|
|
@server.destroy
|
2012-12-24 03:41:55 +00:00
|
|
|
end
|
|
|
|
end
|