1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

The pending block fails the outer one => make sure we return proper result

This commit is contained in:
Bohuslav Kabrda 2012-07-02 13:01:38 +02:00
parent fbf202f7c7
commit 0791366a1b

View file

@ -30,11 +30,12 @@ Shindo.tests('Fog::Compute[:hp] | address requests', [:hp]) do
@server.wait_for { ready? }
tests("#associate_address('#{@server.id}', '#{@ip_address}')").succeeds do
Fog::Compute[:hp].associate_address(@server.id, @ip_address)
result = Fog::Compute[:hp].associate_address(@server.id, @ip_address)
tests("#get_address").returns(@server.id, "associated to valid instance id") do
pending if Fog.mocking?
Fog::Compute[:hp].get_address(@address_id).body['floating_ip']['instance_id']
end
result
end
tests("#disassociate_address('#{@server.id}', '#{@ip_address}')").succeeds do