Fix for bug917490
* Adds a wait for the image to become active before deleting it
Change-Id: I56c05dc8239a284210eaafb0ead14171abc263a8
diff --git a/tempest/tests/test_images.py b/tempest/tests/test_images.py
index 40f5fa7..e761034 100644
--- a/tempest/tests/test_images.py
+++ b/tempest/tests/test_images.py
@@ -81,6 +81,8 @@
pass
else:
- self.fail("Should not create snapshot from deleted instance!")
- image_id = _parse_image_id(resp.['location'])
+ image_id = _parse_image_id(resp['location'])
+ self.client.wait_for_image_resp_code(image_id, 200)
+ self.client.wait_for_image_status(image_id, 'ACTIVE')
self.client.delete_image(image_id)
+ self.fail("Should not create snapshot from deleted instance!")