Browse Source

Merge "Use user_id instead of deprecated user in the policy unit tests"

changes/03/785103/1
Zuul 1 month ago
committed by Gerrit Code Review
parent
commit
4c591bd792
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      neutron/tests/unit/conf/policies/base.py

+ 6
- 6
neutron/tests/unit/conf/policies/base.py View File

@ -41,28 +41,28 @@ class PolicyBaseTestCase(tests_base.BaseTestCase):
def _prepare_system_scope_personas(self):
self.system_admin_ctx = context.Context(
user=self.system_user_id,
user_id=self.system_user_id,
roles=['admin', 'member', 'reader'],
system_scope='all')
self.system_member_ctx = context.Context(
user=self.system_user_id,
user_id=self.system_user_id,
roles=['member', 'reader'],
system_scope='all')
self.system_reader_ctx = context.Context(
user=self.system_user_id,
user_id=self.system_user_id,
roles=['reader'],
system_scope='all')
def _prepare_project_scope_personas(self):
self.project_admin_ctx = context.Context(
user=self.user_id,
user_id=self.user_id,
roles=['admin', 'member', 'reader'],
project_id=self.project_id)
self.project_member_ctx = context.Context(
user=self.user_id,
user_id=self.user_id,
roles=['member', 'reader'],
project_id=self.project_id)
self.project_reader_ctx = context.Context(
user=self.user_id,
user_id=self.user_id,
roles=['reader'],
project_id=self.project_id)

Loading…
Cancel
Save