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:
parent
3172746a75
commit
3585119dce
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue