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