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, ex = self.assertRaises(exceptions.BadRequest,
self.client.update_obj, 'policies', self.client.update_obj, 'policies',
'5df90d82-9889-4c6f-824c-30272bcfa767', '5df90d82-9889-4c6f-824c-30272bcfa767',
{'policy': {'boo': 'foo'}}) {'policy': {'spec': {}, 'boo': 'bar'}})
message = ex.resp_body['error']['message'] message = ex.resp_body['error']['message']
self.assertEqual( self.assertEqual(

View File

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