Temporary fix for api tests
Temporary fixes for debugging gate jobs in senlin. Change-Id: Ibf074f6edb69eb5fcddfef34f238bfa92477b75b
This commit is contained in:
parent
36b3f4f159
commit
4e992e2bd3
@ -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(
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user