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)
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)