Temporary fix for api tests

Temporary fixes for debugging gate jobs in senlin.

Change-Id: Ibf074f6edb69eb5fcddfef34f238bfa92477b75b
This commit is contained in:
tengqm 2018-01-22 02:02:22 -05:00
parent 36b3f4f159
commit 4e992e2bd3
2 changed files with 2 additions and 3 deletions

View File

@ -38,7 +38,7 @@ class TestPolicyUpdateNegativeNotFound(base.BaseSenlinAPITest):
ex = self.assertRaises(exceptions.BadRequest,
self.client.update_obj, 'policies',
'5df90d82-9889-4c6f-824c-30272bcfa767',
{'policy': {'boo': 'foo'}})
{'policy': {'spec': {}, 'boo': 'bar'}})
message = ex.resp_body['error']['message']
self.assertEqual(

View File

@ -48,8 +48,7 @@ class TestPolicyValidateNegativeBadRequest(base.BaseSenlinAPITest):
message = ex.resp_body['error']['message']
self.assertEqual(
"Additional properties are not allowed (u'name' "
"was unexpected)", str(message))
"'spec' is a required property", str(message))
@decorators.attr(type=['negative'])
@decorators.idempotent_id('a1c35d93-2d19-4a72-919f-cfd70f5cbf06')