From 804ac35fd5f373f8a79fe367c2f3bf8cb00e7378 Mon Sep 17 00:00:00 2001 From: Felipe Reyes Date: Mon, 27 Jun 2022 11:07:24 -0400 Subject: [PATCH] Don't test nrpe bits on rabbitmq-server. (#793) When the nrpe application is not deployed in the model skip the test that checks for the correct configuration of the nagios checks, this is because at the moment nrpe has no support for jammy, hence is not being deployed in the jammy-yoga bundles. Jammy support for nrpe is tracked at http://pad.lv/1968008 --- zaza/openstack/charm_tests/rabbitmq_server/tests.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zaza/openstack/charm_tests/rabbitmq_server/tests.py b/zaza/openstack/charm_tests/rabbitmq_server/tests.py index 027ef957d..9b18d8dca 100644 --- a/zaza/openstack/charm_tests/rabbitmq_server/tests.py +++ b/zaza/openstack/charm_tests/rabbitmq_server/tests.py @@ -271,6 +271,13 @@ def _retry_check_commands_on_units(self, cmds, units): def test_414_rmq_nrpe_monitors(self): """Check rabbimq-server nrpe monitor basic functionality.""" + try: + zaza.model.get_application("nrpe") + except KeyError: + logging.warn(("Skipping as nrpe is not deployed. " + "http://pad.lv/1968008")) + return + units = zaza.model.get_units(self.application_name) host_names = generic_utils.get_unit_hostnames(units)