From 2a0fb1f941a4442d46fc5a6075eb5132a6866c3f Mon Sep 17 00:00:00 2001 From: Sergey Vilgelm Date: Thu, 31 Jan 2019 10:43:27 -0600 Subject: [PATCH] Fix Policy action "get_network_ip_availabilities" not found The "get_network_ip_availabilities" policy has been removed since the Neutron uses policy in code. Patrole should test the "get_network_ip_availability" policy. Change-Id: I068c96442f757eb765d147e161584c13f50bfe90 --- .../tests/api/network/test_network_ip_availability_rbac.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/patrole_tempest_plugin/tests/api/network/test_network_ip_availability_rbac.py b/patrole_tempest_plugin/tests/api/network/test_network_ip_availability_rbac.py index b5346d5c..30e5de1b 100644 --- a/patrole_tempest_plugin/tests/api/network/test_network_ip_availability_rbac.py +++ b/patrole_tempest_plugin/tests/api/network/test_network_ip_availability_rbac.py @@ -48,12 +48,13 @@ class NetworkIpAvailabilityExtRbacTest(base.BaseNetworkExtRbacTest): self.ntp_client.show_network_ip_availability(network['id']) @rbac_rule_validation.action(service="neutron", - rules=["get_network_ip_availabilities"]) + rules=["get_network_ip_availability"]) @decorators.idempotent_id('d4ceb5f0-2342-4412-a617-4e1aaf7fcaf0') def test_get_network_ip_availabilities(self): """List network ip availabilities - RBAC test for the neutron get_network_ip_availabilities policy + RBAC test for the neutron "get_network_ip_availability" policy + for the "list_network_ip_availabilities" action. """ admin_resources = (self.ntp_client.list_network_ip_availabilities() ["network_ip_availabilities"])