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
This commit is contained in:
Andrea Frittoli 2017-09-12 08:06:17 -06:00
parent b17f7a380b
commit f78565d4de

View File

@ -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: