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
This commit is contained in:
Chris MacNaughton
2022-08-16 14:06:37 +00:00
committed by GitHub
parent 6c39b3ce18
commit 6590172d87
@@ -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."""