]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: remove traceback/version assertions 31190/head
authorErnesto Puerta <epuertat@redhat.com>
Mon, 18 Nov 2019 18:23:50 +0000 (19:23 +0100)
committerErnesto Puerta <epuertat@redhat.com>
Thu, 28 Nov 2019 10:55:03 +0000 (11:55 +0100)
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 <epuertat@redhat.com>
(cherry picked from commit 93bf7ddde1a6db5c3b9094ba7efb32c8b44d1873)

qa/tasks/mgr/dashboard/test_perf_counters.py

index 33e10e08e8116ec35de035dc51da7f86a5d0798a..c3191dc5e941642552f8b4d9cac46c6b28e70f78 100644 (file)
@@ -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)