Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/nova/tests/unit/policies/base.py b/nova/tests/unit/policies/base.py
- index 8376cc9cdf..261a0f1631 100644
- --- a/nova/tests/unit/policies/base.py
- +++ b/nova/tests/unit/policies/base.py
- @@ -124,6 +124,13 @@ class BasePolicyTest(test.TestCase):
- self.policy.set_rules(self.rules_without_deprecation,
- overwrite=False)
- + def common_policy_auth(self, authorized_contexts,
- + rule_name,
- + func, req, *arg, **kwarg):
- + unauth = set(self.all_contexts) - set(authorized_contexts)
- + return self.common_policy_check(authorized_contexts, unauth,
- + rule_name, func, req, *arg, **kwarg)
- +
- def common_policy_check(self, authorized_contexts,
- unauthorized_contexts, rule_name,
- func, req, *arg, **kwarg):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement