From a6040e2e03148f6d76dfcdc9a84311d6b191a187 Mon Sep 17 00:00:00 2001 From: Chris MacNaughton Date: Fri, 24 Jun 2022 21:48:36 +0200 Subject: [PATCH] Get ceph-dashboard's public addresses from the mon At some point, Juju stopped returning a list of units for subordinate charms, so this test now fails to find the address for the dashboard units --- zaza/openstack/charm_tests/ceph/dashboard/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zaza/openstack/charm_tests/ceph/dashboard/tests.py b/zaza/openstack/charm_tests/ceph/dashboard/tests.py index adc2123..985d57e 100644 --- a/zaza/openstack/charm_tests/ceph/dashboard/tests.py +++ b/zaza/openstack/charm_tests/ceph/dashboard/tests.py @@ -173,7 +173,7 @@ class CephDashboardTest(test_utils.BaseCharmTest): def test_dashboard_units(self): """Check dashboard units are configured correctly.""" verify = self.local_ca_cert - units = zaza.model.get_units(self.application_name) + units = zaza.model.get_units('ceph-mon') rcs = collections.defaultdict(list) for unit in units: r = self._run_request_get(