Merge "Don't enforce scopes in the API policies UT temporary"

This commit is contained in:
Zuul 2021-11-17 09:54:59 +00:00 committed by Gerrit Code Review
commit 63f8a39d75

View File

@ -29,8 +29,11 @@ class PolicyBaseTestCase(tests_base.BaseTestCase):
# That tests are testing only new default policies. # That tests are testing only new default policies.
cfg.CONF.set_override( cfg.CONF.set_override(
'enforce_new_defaults', True, group='oslo_policy') 'enforce_new_defaults', True, group='oslo_policy')
# TODO(slaweq): Remove that override once fix
# https://review.opendev.org/c/openstack/oslo.policy/+/804980 will be
# merged and released in oslo_policy
cfg.CONF.set_override( cfg.CONF.set_override(
'enforce_scope', True, group='oslo_policy') 'enforce_scope', False, group='oslo_policy')
super(PolicyBaseTestCase, self).setUp() super(PolicyBaseTestCase, self).setUp()
self.project_id = uuidutils.generate_uuid() self.project_id = uuidutils.generate_uuid()
self.system_user_id = uuidutils.generate_uuid() self.system_user_id = uuidutils.generate_uuid()