From f78565d4de63f5dd16f47275c63edbd227214bd6 Mon Sep 17 00:00:00 2001 From: Andrea Frittoli Date: Tue, 12 Sep 2017 08:06:17 -0600 Subject: [PATCH] Use glance client to delete an image In compute/image tests the test image is created with the glance client. We should delete it with the glance client as well. Change-Id: I01f939ab58851c8def880a953b62cba0eff0e44b --- tempest/api/compute/images/test_image_metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tempest/api/compute/images/test_image_metadata.py b/tempest/api/compute/images/test_image_metadata.py index c1faa4baf9..b497626a4b 100644 --- a/tempest/api/compute/images/test_image_metadata.py +++ b/tempest/api/compute/images/test_image_metadata.py @@ -72,7 +72,7 @@ class ImagesMetadataTestJSON(base.BaseV2ComputeTest): body = body['image'] if 'image' in body else body cls.image_id = body['id'] cls.addClassResourceCleanup(test_utils.call_and_ignore_notfound_exc, - cls.compute_images_client.delete_image, + cls.glance_client.delete_image, cls.image_id) image_file = six.BytesIO((b'*' * 1024)) if CONF.image_feature_enabled.api_v1: