neutron/neutron/tests/unit/conf/policies
Slawek Kaplonski da8d0eaeea 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
2021-12-20 15:26:48 +01:00
..
__init__.py Base unit test framework to test new API policy enforcement 2021-03-24 21:01:13 +00:00
base.py Fix expected exception raised when new scope types are enforced 2021-12-20 15:26:48 +01:00
test_address_group.py Migrate address-group API to the new secure rbac rules 2021-03-25 14:02:25 +00:00
test_address_scope.py Modify create address scope policy rule and add UT for that API 2021-03-25 08:39:33 +00:00
test_agent.py Fix expected exception raised when new scope types are enforced 2021-12-20 15:26:48 +01:00
test_auto_allocated_topology.py Unit tests for auto_allocated_topology API policies 2021-03-31 15:25:34 +02:00
test_availability_zone.py Fix expected exception raised when new scope types are enforced 2021-12-20 15:26:48 +01:00
test_flavor.py Fix expected exception raised when new scope types are enforced 2021-12-20 15:26:48 +01:00
test_floatingip.py Add tests for FIPs API's new policy rules 2021-04-06 15:43:48 +00:00
test_floatingip_pools.py Add tests for floatingip pools API's new policy rules 2021-03-31 17:15:48 +00:00
test_floatingip_port_forwarding.py Add tests for FIPs port forwarding API's new policy rules 2021-04-12 15:01:04 +02:00
test_l3_conntrack_helper.py Add tests for L3 conntrack helper API's new policy rules 2021-04-12 15:06:03 +02:00
test_logging.py Fix expected exception raised when new scope types are enforced 2021-12-20 15:26:48 +01:00
test_metering.py Add tests for metering API's new policy rules 2021-04-12 15:34:42 +02:00
test_network.py Fix expected exception raised when new scope types are enforced 2021-12-20 15:26:48 +01:00
test_network_ip_availability.py Fix expected exception raised when new scope types are enforced 2021-12-20 15:26:48 +01:00
test_network_segment_range.py Fix expected exception raised when new scope types are enforced 2021-12-20 15:26:48 +01:00
test_port.py Fix expected exception raised when new scope types are enforced 2021-12-20 15:26:48 +01:00
test_qos.py Fix expected exception raised when new scope types are enforced 2021-12-20 15:26:48 +01:00
test_quotas.py Fix expected exception raised when new scope types are enforced 2021-12-20 15:26:48 +01:00
test_rbac.py Replace "target_tenant" with "target_project" in RBAC OVOs and models 2021-12-03 10:48:57 +00:00
test_router.py Fix expected exception raised when new scope types are enforced 2021-12-20 15:26:48 +01:00
test_security_group.py Add tests for Security Groups API's new policy rules 2021-04-23 13:09:56 +02:00
test_segment.py Fix expected exception raised when new scope types are enforced 2021-12-20 15:26:48 +01:00
test_service_type.py Add tests for service_type API's new policy rules 2021-06-05 22:48:33 +00:00
test_subnet.py Fix expected exception raised when new scope types are enforced 2021-12-20 15:26:48 +01:00
test_subnetpool.py Fix expected exception raised when new scope types are enforced 2021-12-20 15:26:48 +01:00
test_trunk.py Add tests for trunk API's new policy rules 2021-04-07 12:40:36 +02:00