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:
parent
a9d9055222
commit
47d87754ec
|
@ -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):
|
||||
|
|
1
tox.ini
1
tox.ini
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue