From a25793a2ae053ed3a7463a9d14c7b746d629acee Mon Sep 17 00:00:00 2001 From: Ernesto Puerta Date: Mon, 18 Nov 2019 19:23:50 +0100 Subject: [PATCH] mgr/dashboard: remove traceback/version assertions Debug mode (https://github.com/ceph/ceph/pull/30522) by default hides Cherrypy version and Python traceback on Error responses. Both can be displayed optionally. Some QA tests expect these two fields to be present in the error responses and fail otherwise. Fixes: https://tracker.ceph.com/issues/42708 Fixes: https://github.com/ceph/ceph/pull/30522 Signed-off-by: Ernesto Puerta (cherry picked from commit 93bf7ddde1a6db5c3b9094ba7efb32c8b44d1873) --- qa/tasks/mgr/dashboard/test_perf_counters.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qa/tasks/mgr/dashboard/test_perf_counters.py b/qa/tasks/mgr/dashboard/test_perf_counters.py index 33e10e08e8116..c3191dc5e9416 100644 --- a/qa/tasks/mgr/dashboard/test_perf_counters.py +++ b/qa/tasks/mgr/dashboard/test_perf_counters.py @@ -65,9 +65,7 @@ class PerfCountersControllerTest(DashboardTestCase): self.assertStatus(404) schema = JObj(sub_elems={ 'status': str, - 'version': str, 'detail': str, - 'traceback': str, - }) + }, allow_unknown=True) self.assertEqual(self._resp.json()['detail'], "'osd.{}' not found".format(unused_id)) self.assertSchemaBody(schema) -- 2.39.5