summaryrefslogtreecommitdiff
path: root/neutron/tests/functional/services/portforwarding/test_port_forwarding.py
diff options
context:
space:
mode:
authorSlawek Kaplonski <skaplons@redhat.com>2023-04-07 10:10:39 +0200
committerSlawek Kaplonski <skaplons@redhat.com>2023-04-21 16:22:42 +0200
commit670cc383e0345063c0bf9022f8829d5817457e00 (patch)
treef012101732ea0df493946b0ab93de10f4ab828d3 /neutron/tests/functional/services/portforwarding/test_port_forwarding.py
parent05ba4257dec5e80565aedb49685d8784424be461 (diff)
downloadneutron-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/functional/services/portforwarding/test_port_forwarding.py')
-rw-r--r--neutron/tests/functional/services/portforwarding/test_port_forwarding.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/neutron/tests/functional/services/portforwarding/test_port_forwarding.py b/neutron/tests/functional/services/portforwarding/test_port_forwarding.py
index 9881c1c4a0..e0b4dbf733 100644
--- a/neutron/tests/functional/services/portforwarding/test_port_forwarding.py
+++ b/neutron/tests/functional/services/portforwarding/test_port_forwarding.py
@@ -98,7 +98,8 @@ class PortForwardingTestCase(PortForwardingTestCaseBase):
def _prepare_env(self):
self.router = self._create_router(distributed=True)
self.ext_net = self._create_network(
- self.fmt, 'ext-net', True, arg_list=("router:external",),
+ self.fmt, 'ext-net', True, as_admin=True,
+ arg_list=("router:external",),
**{"router:external": True}).json['network']
self.ext_subnet = self._create_subnet(
self.fmt, self.ext_net['id'], '172.24.2.0/24').json['subnet']