neutron/neutron/tests/unit/extensions
Slawek Kaplonski 062336e59b Set system_scope='all' in elevated context
In case when enforce_new_defaults is set to True and new policy rules
are used, context.is_admin flag isn't really working as it was with old
rules.
But in case when elevated context is needed, it means that we need
context which has full rights to the system. So we should also set
"system_scope" parameter to "all" to be sure that system scope queries
can be done with such elevated context always.

It is needed e.g. when elevated context is used to get some data from
db. In such case we need to have db query which will not be scoped to
the single project_id and with new defaults to achieve that system_scope
has to be set to "all".

Proper fix for that should be done in neutron-lib and it is proposed
in [1] already but as we are have frozen neutron-lib version for
stable/wallaby already this patch for neutron is temporary fix for that
issue.
We can revert that patch as soon as we will be in Xena development cycle
and [1] will be merged and released.

[1] https://review.opendev.org/c/openstack/neutron-lib/+/781625

Related-Bug: #1920001
Change-Id: I0068c1de09f5c6fae5bb5cd0d6f26f451e701939
2021-03-19 12:05:56 +01:00
..
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
base.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
extendedattribute.py Use ExtensionDescriptor from neutron-lib 2016-12-02 14:16:06 -05:00
extensionattribute.py Use ExtensionDescriptor from neutron-lib 2016-12-02 14:16:06 -05:00
foxinsocks.py Remove usage of six.add_metaclass 2020-05-21 14:41:18 -04:00
test_address_group.py Support address group in OVS firewall agent 2021-02-08 13:28:06 -06:00
test_address_scope.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_agent.py Set process name for agents 2020-07-01 12:28:29 +02:00
test_availability_zone.py use api def ALIAS in supported_extension_aliases 2019-04-08 08:30:20 -06:00
test_data_plane_status.py Switch to new engine facade in extensions unit tests 2020-03-20 06:28:46 +01:00
test_default_subnetpools.py Fix dhcpv6-statefull typo 2020-05-01 10:50:37 -04:00
test_dns.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_expose_port_forwarding_in_fip.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_external_net.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_extra_dhcp_opt.py Switch to new engine facade in extensions unit tests 2020-03-20 06:28:46 +01:00
test_extraroute.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_fip_port_details.py use api def ALIAS in supported_extension_aliases 2019-04-08 08:30:20 -06:00
test_flavors.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_floating_ip_port_forwarding.py Fix incorrect exception catch when update floating ip port forwarding 2021-02-06 02:40:02 +00:00
test_floatingip_pools.py Set system_scope='all' in elevated context 2021-03-19 12:05:56 +01:00
test_l3.py Merge "Improve the CIDRs overlap check method for router add interface" 2021-01-10 15:31:26 +00:00
test_l3_conntrack_helper.py Add extension unit tests for conntrack_helper plugin 2021-02-06 02:36:22 +00:00
test_l3_ext_gw_mode.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_network_ip_availability.py Subnet gateway should be a valid IP 2019-12-23 10:13:23 +00:00
test_network_segment_range.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_port_device_profile.py Add port device profile extension 2021-01-22 16:17:30 +00:00
test_port_numa_affinity_policy.py Rename PortNumaAffinityPolicyExtensionTestPlugin 2020-12-18 11:43:04 +00:00
test_portsecurity.py Finish the new DB engine facade migration 2020-11-24 09:20:35 +00:00
test_providernet.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_qos_fip.py [OVN] Implement floating IP QoS in OVN backend 2020-09-01 07:27:48 +00:00
test_qos_gateway_ip.py use api def ALIAS in supported_extension_aliases 2019-04-08 08:30:20 -06:00
test_quotasv2.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_quotasv2_detail.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_router_availability_zone.py delete common_db_mixin 2019-04-17 11:25:41 -06:00
test_security_groups_normalized_cidr.py Add normalized_cidr column to SG rules 2021-01-07 12:23:59 +01:00
test_securitygroup.py Add normalized_cidr column to SG rules 2021-01-07 12:23:59 +01:00
test_segment.py Floating IP for routed networks: network:routed API 2020-12-17 14:21:30 +01:00
test_servicetype.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_subnet_dns_publish_fixed_ip.py Allow to select subnets to publish DNS records 2019-12-14 13:36:09 +00:00
test_subnet_onboard.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_subnet_service_types.py use api def ALIAS in supported_extension_aliases 2019-04-08 08:30:20 -06:00
test_subnetpool_prefix_ops.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_timestamp.py Remove "six" library 2020-07-28 16:55:52 +00:00
test_uplink_status_propagation.py Switch to new enginefacade in uplink_status_propagation UT module 2020-08-27 22:28:16 +02:00
test_vlantransparent.py Switch to new engine facade in extensions unit tests 2020-03-20 06:28:46 +01:00
v2attributes.py Use ExtensionDescriptor from neutron-lib 2016-12-02 14:16:06 -05:00