summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-01-14 17:57:11 +0000
committerGerrit Code Review <review@openstack.org>2013-01-14 17:57:11 +0000
commitbca6818d6458a6794e5f8550be0ceed3626cd7ca (patch)
treeab29fefec3a897fbf583bcb050bc8587fa1067b9 /tests
parentf112873e05a0d33f6d661e8355e6eeb7629b12b3 (diff)
parent24f21f5b557a5b28aa57afdc92387514464eda1c (diff)
downloadkeystone-bca6818d6458a6794e5f8550be0ceed3626cd7ca.tar.gz
keystone-bca6818d6458a6794e5f8550be0ceed3626cd7ca.tar.xz
keystone-bca6818d6458a6794e5f8550be0ceed3626cd7ca.zip
Merge "Fix issue in test_forbidden_action_exposure."
Diffstat (limited to 'tests')
-rw-r--r--tests/test_exception.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_exception.py b/tests/test_exception.py
index 0d30c5ba..a13e3982 100644
--- a/tests/test_exception.py
+++ b/tests/test_exception.py
@@ -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)