Fix test_should_reject_if_wrong_content_type test
Adjust test to proper handle response from new unified api when wrong content type Change-Id: I4bcd3abdc188e58db758b6e3250954d6c4d3b254
This commit is contained in:
parent
81469fbe21
commit
0b4183c018
|
@ -49,6 +49,9 @@ class TestLogApiConstraints(base.BaseLogsTestCase):
|
|||
except exceptions.InvalidContentType as urc:
|
||||
self.assertEqual(415, urc.resp.status)
|
||||
return
|
||||
except exceptions.BadRequest as urc:
|
||||
self.assertEqual(400, urc.resp.status)
|
||||
return
|
||||
|
||||
self.assertTrue(False, 'API should respond with 400')
|
||||
|
||||
|
|
Loading…
Reference in New Issue