Skip to content

Commit

Permalink
Merge pull request #1274 from sabaini/rgw-vhost-skip-quincy
Browse files Browse the repository at this point in the history
Skip unsupported vhost config on older releases
  • Loading branch information
sabaini authored Oct 7, 2024
2 parents 853318b + 774d4cc commit 115c4e7
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 115c4e7

Please sign in to comment.