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

22 lines
441 B
Ruby
Raw Normal View History

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