Skip to content

Commit

Permalink
Skip unsupported vhost config on older releases
Browse files Browse the repository at this point in the history
Quincy and older do not support virtual hosted bucket
  • Loading branch information
sabaini committed Oct 7, 2024
1 parent 853318b commit 774d4cc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions zaza/openstack/charm_tests/ceph/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1442,6 +1442,14 @@ def test_100_migration_and_multisite_failover(self):

def test_101_virtual_hosted_bucket(self):
"""Test virtual hosted bucket."""
# skip if quincy or older
current_release = zaza_openstack.get_os_release(
application='ceph-mon')
reef = zaza_openstack.get_os_release('jammy_bobcat')
if current_release < reef:
raise unittest.SkipTest(
'Virtual hosted bucket not supported in quincy or older')

primary_rgw_unit = zaza_model.get_unit_from_name(self.primary_rgw_unit)
if primary_rgw_unit.workload_status != "active":
logging.info('Skipping virtual hosted bucket test since '
Expand Down

0 comments on commit 774d4cc

Please sign in to comment.