From 9e7d76df2f655bd2d0a810780ec41428a712e306 Mon Sep 17 00:00:00 2001 From: Edin Sarajlic Date: Thu, 19 Sep 2019 16:17:34 +1000 Subject: [PATCH] Test: Rmq unit action 'cluster-status' returns a Juju action --- zaza/openstack/charm_tests/rabbitmq_server/tests.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/zaza/openstack/charm_tests/rabbitmq_server/tests.py b/zaza/openstack/charm_tests/rabbitmq_server/tests.py index 6faf015..58ab127 100644 --- a/zaza/openstack/charm_tests/rabbitmq_server/tests.py +++ b/zaza/openstack/charm_tests/rabbitmq_server/tests.py @@ -16,6 +16,7 @@ import logging import time import uuid +import juju import zaza.model import zaza.openstack.charm_tests.test_utils as test_utils import zaza.openstack.utilities.generic as generic_utils @@ -226,3 +227,13 @@ class RmqTests(test_utils.OpenStackBaseTest): logging.info('OK\n') + def test_911_cluster_status(self): + """ rabbitmqctl cluster_status action can be returned. """ + logging.debug('Checking cluster status action...') + + unit = zaza.model.get_units(self.application_name)[0] + action = zaza.model.run_action(unit.entity_id, "cluster-status") + self.assertIsInstance(action, juju.action.Action) + + logging.debug('OK') +