From 43147c6c0b3ca1841f28f4e0284a269d7fe99b6b Mon Sep 17 00:00:00 2001 From: "Castulo J. Martinez" Date: Fri, 8 Jul 2016 12:04:45 -0700 Subject: [PATCH] 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 --- tempest/api/compute/images/test_images.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tempest/api/compute/images/test_images.py b/tempest/api/compute/images/test_images.py index 150e8af95a..37546370ec 100644 --- a/tempest/api/compute/images/test_images.py +++ b/tempest/api/compute/images/test_images.py @@ -49,6 +49,9 @@ class ImagesTestJSON(base.BaseV2ComputeTest): 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):