mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
25 lines
538 B
Ruby
25 lines
538 B
Ruby
|
Shindo.tests("Fog::Compute[:aws] | address", ['aws']) do
|
||
|
|
||
|
model_tests(Fog::Compute[:aws].addresses, {}, true) do
|
||
|
|
||
|
@server = Fog::Compute[:aws].servers.create
|
||
|
@server.wait_for { ready? }
|
||
|
|
||
|
tests('#server=').succeeds do
|
||
|
@instance.server = @server
|
||
|
end
|
||
|
|
||
|
tests('#server') do
|
||
|
test(' == @server') do
|
||
|
@server.reload
|
||
|
@instance.server.public_ip_address == @instance.public_ip
|
||
|
end
|
||
|
end
|
||
|
|
||
|
@server.destroy
|
||
|
|
||
|
end
|
||
|
|
||
|
model_tests(Fog::Compute[:aws].addresses, { :domain => "vpc" }, true)
|
||
|
end
|