From: Ernesto Puerta Date: Mon, 18 Nov 2019 18:23:50 +0000 (+0100) Subject: mgr/dashboard: remove traceback/version assertions X-Git-Tag: v15.1.0~729^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=93bf7ddde1a6db5c3b9094ba7efb32c8b44d1873;p=ceph.git 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 --- diff --git a/qa/tasks/mgr/dashboard/test_perf_counters.py b/qa/tasks/mgr/dashboard/test_perf_counters.py index 33e10e08e811..c3191dc5e941 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)