Merge "Adding Missing rbac test for Volume"
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}
diff --git a/patrole_tempest_plugin/tests/api/volume/test_volume_transfers_rbac.py b/patrole_tempest_plugin/tests/api/volume/test_volume_transfers_rbac.py
index 9640dc6..a33ebe0 100644
--- a/patrole_tempest_plugin/tests/api/volume/test_volume_transfers_rbac.py
+++ b/patrole_tempest_plugin/tests/api/volume/test_volume_transfers_rbac.py
@@ -72,6 +72,13 @@
self.rbac_utils.switch_role(self, toggle_rbac_role=True)
self.transfers_client.list_volume_transfers()
+ @decorators.idempotent_id('e84e45b0-9872-40bf-bf44-971266161a86')
+ @rbac_rule_validation.action(service="cinder",
+ rule="volume:get_all_transfers")
+ def test_list_volume_transfers_details(self):
+ with self.rbac_utils.override_role(self):
+ self.transfers_client.list_volume_transfers(detail=True)
+
@rbac_rule_validation.action(service="cinder",
rule="volume:accept_transfer")
@decorators.idempotent_id('987f2a11-d657-4984-a6c9-28f06c1cd014')