Skip to content

Commit

Permalink
Merge pull request #1118 from gnuoy/skip-qq-tests
Browse files Browse the repository at this point in the history
Gate quorum queue tests on whether the charm supports them
  • Loading branch information
javacruft authored Sep 6, 2023
2 parents 5d23bee + bd8d7e8 commit e095da5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zaza/openstack/charm_tests/rabbitmq_server/tests_k8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ def create_test_queue(self):

def test_quorum_queue_management(self):
"""Test charm management for quorum queues."""
configs = zaza.model.get_application_config("rabbitmq")
if not hasattr(configs, "minimum-replicas"):
self.skipTest(
"Charm does not support quorum queues."
)
if len(zaza.model.get_units("rabbitmq")) != 1:
self.skipTest(
"Unexpected number of units. There most be only one unit for "
Expand Down

0 comments on commit e095da5

Please sign in to comment.