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

[rackspace|compute] Improve attachment test reliability.

This commit is contained in:
Brad Gignac 2012-09-14 11:25:32 -04:00
parent 3172746a75
commit 3585119dce

View file

@ -43,14 +43,14 @@ Shindo.tests('Fog::Compute::RackspaceV2 | attachment_tests', ['rackspace']) do
compute_service.list_attachments(server_id).body
end
tests("#get_attachment(#{server_id}, #{volume_id})").formats(ATTACHMENT_FORMAT) do
compute_service.get_attachment(server_id, volume_id).body
end
until block_storage_service.get_volume(volume_id).body['volume']['status'] == 'in-use'
sleep 10
end
tests("#get_attachment(#{server_id}, #{volume_id})").formats(ATTACHMENT_FORMAT) do
compute_service.get_attachment(server_id, volume_id).body
end
tests("#delete_attachment(#{server_id}, #{volume_id})").succeeds do
compute_service.delete_attachment(server_id, volume_id)
end