diff --git a/monasca_tempest_tests/tests/log_api/test_constraints.py b/monasca_tempest_tests/tests/log_api/test_constraints.py index 00c1212..cf81166 100644 --- a/monasca_tempest_tests/tests/log_api/test_constraints.py +++ b/monasca_tempest_tests/tests/log_api/test_constraints.py @@ -75,8 +75,11 @@ class TestLogApiConstraints(base.BaseLogsTestCase): except exceptions.OverLimit as urc: self.assertEqual(413, urc.resp.status) return + except exceptions.UnexpectedContentType as uct: + self.assertEqual(503, uct.resp.status) + return - self.assertTrue(False, 'API should respond with 413') + self.assertTrue(False, 'API should respond with 413 or 503') @decorators.attr(type='gate') def test_should_reject_too_big_message_multiline(self): @@ -97,5 +100,8 @@ class TestLogApiConstraints(base.BaseLogsTestCase): except exceptions.OverLimit as urc: self.assertEqual(413, urc.resp.status) return + except exceptions.UnexpectedContentType as uct: + self.assertEqual(503, uct.resp.status) + return - self.assertTrue(False, 'API should respond with 413') + self.assertTrue(False, 'API should respond with 413 or 503')