Python3: HTTPServerError no longer has a "message" argument in its constructo

This fixes barbican.tests.api.test_resources_policy.
Partially implements: blueprint barbican-py3

Change-Id: I683cc37278b27f0eb4899279ae1a27312eb711d2
This commit is contained in:
Cyril Roelandt 2016-04-26 15:29:26 +02:00
parent a9d9055222
commit 47d87754ec
2 changed files with 2 additions and 1 deletions

View File

@ -159,7 +159,7 @@ class BaseTestCase(utils.BaseTestCase, utils.MockModelRepositoryMixin):
"""
# The 'Read Error' clause needs to match that asserted in
# _assert_post_rbac_exception() above.
return exc.HTTPServerError(message='Read Error')
return exc.HTTPServerError(detail='Read Error')
def _assert_pass_rbac(self, roles, method_under_test, accept=None,
content_type=None, user_id=None, project_id=None):

View File

@ -33,6 +33,7 @@ commands =
barbican.tests.api.middleware.test_context \
barbican.tests.api.middleware.test_simple \
barbican.tests.api.test_init \
barbican.tests.api.test_resources_policy \
barbican.tests.cmd.test_cmd \
barbican.tests.common.test_hrefs \
barbican.tests.common.test_quota \