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