Merge pull request #1112 from dosaboy/skip-glance-cinder-backend-test-lt-xena

Skip glance cinderbackend tests for < xena
This commit is contained in:
coreycb
2023-09-05 09:53:38 -04:00
committed by GitHub

View File

@@ -244,6 +244,12 @@ class GlanceCinderBackendTest(test_utils.OpenStackBaseTest):
Validate the size of the image in both Glance API and Cinder API.
"""
current_release = openstack_utils.get_os_release()
focal_xena = openstack_utils.get_os_release('focal_xena')
if current_release < focal_xena:
self.skipTest('skipping test since cinder backend not supported '
'till xena')
image_name = "zaza-cinder-test-image"
openstack_utils.create_image(
glance=self.glance_client,