From da8d0eaeea08bac469a4236c546103d7bfb12471 Mon Sep 17 00:00:00 2001 From: Slawek Kaplonski Date: Mon, 20 Dec 2021 15:24:29 +0100 Subject: 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 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'requirements.txt') 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 -- cgit v1.2.1