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
This commit is contained in:
Sergey Vilgelm 2019-01-31 10:43:27 -06:00
parent 2daa5e6017
commit 2a0fb1f941
No known key found for this signature in database
GPG Key ID: 08D0E2FF778887E6
1 changed files with 3 additions and 2 deletions

View File

@ -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"])