1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/brightbox/models/compute/server_tests.rb
Paul Thornthwaite aa66911a4b [Brightbox] Adds #dns_name to server
Little known fact is that the public version of the domain name of a
Brightbox cloud server is the `fqdn` prefixed with public.

This is now fixed here until it is fixed in the main API and the value
can be referenced directly from the response.
2012-12-24 03:57:28 +00:00

21 lines
441 B
Ruby

Shindo.tests("Fog::Compute[:brightbox] | Server model", ["brightbox"]) do
pending if Fog.mocking?
tests("success") do
unless Fog.mocking?
@server = Brightbox::Compute::TestSupport.get_test_server
server_id = @server.id
end
tests("#dns_name") do
pending if Fog.mocking?
returns("public.#{@server.fqdn}") { @server.dns_name }
end
unless Fog.mocking?
@server.destroy
end
end
end