Skip glance cinderbackend tests for < xena

This commit is contained in:
Edward Hope-Morley
2023-09-05 14:45:57 +01:00
parent 7925fd0447
commit ddd99ba582

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,