Synced tempest code from monasca-{api, log_api}

* Fix Metric Statistics period call, Statistics api failure when
  end time is not used from monasca-api and  Enable UWSGI support
  in monasca-log-api from monasca-log-api code synced.

Change-Id: I2ce2bd8238d44a451faeba9ddbfe27d900e9adef
This commit is contained in:
Chandan Kumar 2018-01-29 12:00:08 +05:30
parent 7acfc005d6
commit d04d12bdf9
1 changed files with 8 additions and 2 deletions

View File

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