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:
Adrian Czarnecki 2019-09-11 11:21:48 +02:00
parent 81469fbe21
commit 0b4183c018
1 changed files with 3 additions and 0 deletions

View File

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