2011-06-16 19:28:54 -04:00
|
|
|
Shindo.tests("Fog::Compute[:aws] | address", ['aws']) do
|
2011-03-21 19:45:52 -04:00
|
|
|
|
2011-06-16 19:28:54 -04:00
|
|
|
model_tests(Fog::Compute[:aws].addresses, {}, true) do
|
2011-04-27 16:19:19 -04:00
|
|
|
|
2011-06-16 19:28:54 -04:00
|
|
|
@server = Fog::Compute[:aws].servers.create
|
2011-03-21 19:45:52 -04:00
|
|
|
@server.wait_for { ready? }
|
|
|
|
|
|
|
|
tests('#server=').succeeds do
|
|
|
|
@instance.server = @server
|
|
|
|
end
|
|
|
|
|
2012-04-18 18:56:00 -04:00
|
|
|
tests('#server') do
|
|
|
|
test(' == @server') do
|
|
|
|
@server.reload
|
|
|
|
@instance.server.public_ip_address == @instance.public_ip
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2011-03-21 19:45:52 -04:00
|
|
|
@server.destroy
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|