[Gate fix] Change policy for create_port/update_port:fixed_ips
This commit fixes the policies used by the tests:
* test_create_port_fixed_ips
* test_update_port_fixed_ips
To validate the following policy actions instead:
* create_port:fixed_ips:ip_address
* update_port:fixed_ips:ip_address
This change is necessary because Neutron recently added more specific
policy enforcement for these actions in:
I1046f6b13e68b1e274cc8f62f5b30aa5f8d71cdc
Also renames the test names to convey the more specific policy
name.
Change-Id: If123e20b10614e8e31ecaecf74e4beda6b575e40
diff --git a/patrole_tempest_plugin/tests/api/network/test_ports_rbac.py b/patrole_tempest_plugin/tests/api/network/test_ports_rbac.py
index 2fb26f8..c55935f 100644
--- a/patrole_tempest_plugin/tests/api/network/test_ports_rbac.py
+++ b/patrole_tempest_plugin/tests/api/network/test_ports_rbac.py
@@ -106,9 +106,9 @@
self.create_port(**post_body)
@rbac_rule_validation.action(service="neutron",
- rule="create_port:fixed_ips")
+ rule="create_port:fixed_ips:ip_address")
@decorators.idempotent_id('2551e10d-006a-413c-925a-8c6f834c09ac')
- def test_create_port_fixed_ips(self):
+ def test_create_port_fixed_ips_ip_address(self):
ip_list = self._get_unused_ip_address()
fixed_ips = [{'ip_address': ip_list[0]},
@@ -269,9 +269,9 @@
mac_address=original_mac_address)
@rbac_rule_validation.action(service="neutron",
- rule="update_port:fixed_ips")
+ rule="update_port:fixed_ips:ip_address")
@decorators.idempotent_id('c091c825-532b-4c6f-a14f-affd3259c1c3')
- def test_update_port_fixed_ips(self):
+ def test_update_port_fixed_ips_ip_address(self):
# Pick an ip address within the allocation_pools range.
post_body = {'network': self.network}