diff options
author | Slawek Kaplonski <skaplons@redhat.com> | 2021-12-20 15:24:29 +0100 |
---|---|---|
committer | Slawek Kaplonski <skaplons@redhat.com> | 2021-12-20 15:26:48 +0100 |
commit | da8d0eaeea08bac469a4236c546103d7bfb12471 (patch) | |
tree | 36f5c7159a12271af14b16fbee451d773a263b31 /requirements.txt | |
parent | 0baf23d521c807b5c02cf41030c7625109353b5f (diff) | |
download | neutron-da8d0eaeea08bac469a4236c546103d7bfb12471.tar.gz |
Fix expected exception raised when new scope types are enforced
After fix for the related bug will be fixed in oslo_policy [1],
InvalidScope exception will be raised for the API requests done with
project scope when "system" scope is required.
This patch changes our API policies unit tests to expect proper
exception to be raised in such cases.
This patch also bumps minimum required oslo.policy version to
3.10.1 which contains fix for the scope enforcement in the
custom rules.
Finally it also re-enables enforcing scope in those UT.
[1] https://review.opendev.org/c/openstack/oslo.policy/+/804980
Related-Bug: #1923503
Change-Id: I4c209fa4f504440a44d21a05f2703259f62519a5
Diffstat (limited to 'requirements.txt')
-rw-r--r-- | requirements.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/requirements.txt b/requirements.txt index 9b9551740a..33b42b5d1c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -33,7 +33,7 @@ oslo.i18n>=3.20.0 # Apache-2.0 oslo.log>=4.5.0 # Apache-2.0 oslo.messaging>=7.0.0 # Apache-2.0 oslo.middleware>=3.31.0 # Apache-2.0 -oslo.policy>=3.7.0 # Apache-2.0 +oslo.policy>=3.10.1 # Apache-2.0 oslo.privsep>=2.3.0 # Apache-2.0 oslo.reports>=1.18.0 # Apache-2.0 oslo.rootwrap>=5.8.0 # Apache-2.0 |