From 36d85aece547e037bdd4eca36af7519187fc6406 Mon Sep 17 00:00:00 2001 From: Liam Young Date: Wed, 8 Sep 2021 13:34:30 +0000 Subject: [PATCH] Pacific requires client to set accepted api version --- zaza/openstack/charm_tests/ceph/dashboard/tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zaza/openstack/charm_tests/ceph/dashboard/tests.py b/zaza/openstack/charm_tests/ceph/dashboard/tests.py index 1b5e46d..9c6eae7 100644 --- a/zaza/openstack/charm_tests/ceph/dashboard/tests.py +++ b/zaza/openstack/charm_tests/ceph/dashboard/tests.py @@ -117,7 +117,9 @@ class CephDashboardTest(test_utils.BaseCharmTest): self.assertEqual(action.status, "completed") password = action.data['results']['password'] path = "api/auth" - headers = {'Content-type': 'application/json'} + headers = { + 'Content-type': 'application/json', + 'Accept': 'application/vnd.ceph.api.v1.0'} payload = {"username": user, "password": password} verify = self.local_ca_cert r = requests.post(