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