Merge "Fix issue in test_forbidden_action_exposure."

This commit is contained in:
Jenkins 2013-01-14 17:57:11 +00:00 committed by Gerrit Code Review
commit bca6818d64

View File

@ -114,10 +114,11 @@ class SecurityErrorTestCase(ExceptionTestCase):
CONF.debug = False
risky_info = uuid.uuid4().hex
e = exception.ForbiddenAction(message=risky_info)
action = uuid.uuid4().hex
e = exception.ForbiddenAction(message=risky_info, action=action)
self.assertValidJsonRendering(e)
self.assertNotIn(risky_info, str(e))
self.assertIn(action, str(e))
e = exception.ForbiddenAction(action=risky_info)
self.assertValidJsonRendering(e)