Add missing validation to test_delete_saving_image
The purpose of the test_delete_saving_image test is to validate that
an image in saving state can be deleted, however the test never
actually checks that the image was actually deleted. This commit adds
an assertion to validate that.
Change-Id: Ib183db03f0d2953c61929a7f2b6bfb835a93d781
Closes-Bug: 1600340
diff --git a/tempest/api/compute/images/test_images.py b/tempest/api/compute/images/test_images.py
index 150e8af..3754637 100644
--- a/tempest/api/compute/images/test_images.py
+++ b/tempest/api/compute/images/test_images.py
@@ -49,6 +49,9 @@
name=snapshot_name,
wait_until='SAVING')
self.client.delete_image(image['id'])
+ msg = ('The image with ID {image_id} failed to be deleted'
+ .format(image_id=image['id']))
+ self.assertTrue(self.client.is_resource_deleted(image['id']), msg)
@test.idempotent_id('aaacd1d0-55a2-4ce8-818a-b5439df8adc9')
def test_create_image_from_stopped_server(self):