diff options
author | Slawek Kaplonski <skaplons@redhat.com> | 2023-04-07 10:10:39 +0200 |
---|---|---|
committer | Slawek Kaplonski <skaplons@redhat.com> | 2023-04-21 16:22:42 +0200 |
commit | 670cc383e0345063c0bf9022f8829d5817457e00 (patch) | |
tree | f012101732ea0df493946b0ab93de10f4ab828d3 /neutron/tests/unit/db/test_dvr_mac_db.py | |
parent | 05ba4257dec5e80565aedb49685d8784424be461 (diff) | |
download | neutron-670cc383e0345063c0bf9022f8829d5817457e00.tar.gz |
[S-RBAC] Switch to new policies by default
As part of the Secure RBAC community goal, we should switch options
"enforce_new_defaults" and "enforce_scope" to be True by default.
It will be still possible to fallback to old policy rules by configuring
those config options to False in Neutron config.
Change-Id: I09c0026ccf87e6c0bb1fa59165c03dc508fba6fa
Diffstat (limited to 'neutron/tests/unit/db/test_dvr_mac_db.py')
-rw-r--r-- | neutron/tests/unit/db/test_dvr_mac_db.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/neutron/tests/unit/db/test_dvr_mac_db.py b/neutron/tests/unit/db/test_dvr_mac_db.py index 80d650a7d8..6f87672712 100644 --- a/neutron/tests/unit/db/test_dvr_mac_db.py +++ b/neutron/tests/unit/db/test_dvr_mac_db.py @@ -188,22 +188,28 @@ class DvrDbMixinTestCase(test_plugin.Ml2PluginV2TestCase): arg_list = (portbindings.HOST_ID,) with self.subnet() as subnet,\ self.port(subnet=subnet, + is_admin=True, device_owner=constants.DEVICE_OWNER_COMPUTE_PREFIX, arg_list=arg_list, **host_arg) as compute_port,\ self.port(subnet=subnet, device_owner=constants.DEVICE_OWNER_DHCP, + is_admin=True, arg_list=arg_list, **host_arg) as dhcp_port,\ self.port(subnet=subnet, device_owner=constants.DEVICE_OWNER_LOADBALANCER, + is_admin=True, arg_list=arg_list, **host_arg) as lb_port,\ self.port(device_owner=constants.DEVICE_OWNER_COMPUTE_PREFIX, + is_admin=True, arg_list=arg_list, **host_arg),\ self.port(subnet=subnet, device_owner=constants.DEVICE_OWNER_COMPUTE_PREFIX, + is_admin=True, arg_list=arg_list, **{portbindings.HOST_ID: 'other'}),\ self.port(subnet=subnet, device_owner=constants.DEVICE_OWNER_NETWORK_PREFIX, + is_admin=True, arg_list=arg_list, **host_arg): expected_ids = [port['port']['id'] for port in [compute_port, dhcp_port, lb_port]] |