From 6590172d87f14756fdf6d75ec7ed47b1f1b134c3 Mon Sep 17 00:00:00 2001 From: Chris MacNaughton Date: Tue, 16 Aug 2022 14:06:37 +0000 Subject: [PATCH] Strip trailing slash from dashboard URL The trailing slash gets handled badly by the Ceph dashboard when the auth URL ends up looking like https://ip.address//api/auth --- 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 985d57e..5aafa3f 100644 --- a/zaza/openstack/charm_tests/ceph/dashboard/tests.py +++ b/zaza/openstack/charm_tests/ceph/dashboard/tests.py @@ -168,7 +168,7 @@ class CephDashboardTest(test_utils.BaseCharmTest): url = json.loads(output).get('dashboard') if url is None: raise tenacity.RetryError(None) - return url + return url.strip('/') def test_dashboard_units(self): """Check dashboard units are configured correctly."""