Support proper image import ISO format testing
This makes the image import format test not skip ISO and assert that
the import conversion process does not change it from iso to something
else.
Depends-On: https://review.opendev.org/c/openstack/glance/+/923676
Change-Id: I2e88b0a086838d68055ac9a5808b84c8dc1efc2e
diff --git a/tempest/api/image/v2/test_images_formats.py b/tempest/api/image/v2/test_images_formats.py
index 45626a6..7ebc685 100644
--- a/tempest/api/image/v2/test_images_formats.py
+++ b/tempest/api/image/v2/test_images_formats.py
@@ -110,12 +110,6 @@
if not CONF.image_feature_enabled.image_conversion:
self.skipTest('Import image_conversion not enabled')
- if self.imgdef['format'] == 'iso':
- # TODO(danms): Glance does not properly handle ISO conversions
- # today and this is being fixed currently. Remove when this
- # is stable and able to be tested.
- self.skipTest('Glance ISO conversion is not testable')
-
glance_noconvert = [
# Glance does not support vmdk-sparse-with-footer with the
# in-tree format_inspector
@@ -147,6 +141,12 @@
'queued')
self.client.delete_image(image['id'])
+ if self.imgdef['format'] == 'iso':
+ # NOTE(danms): Glance has a special case to not convert ISO images
+ # because they are special and must remain as ISOs in order to be
+ # properly used for CD-based rescue and boot.
+ self.assertEqual('iso', image['disk_format'])
+
def _create_server_with_image_def(self, image_def, **overrides):
image_def = dict(image_def, **overrides)
image = self._test_image(image_def)