Go to file
Slawek Kaplonski 1555e14677 [S-RBAC] Fix tests for port RBAC policies
Exisitng tests didn't mock "get_network" function properly thus
there was no "network:tenant_id" field in the target object set and
OwnerCheck check was failing for the "net_owner".
Unit tests were green because they badly expected e.g. for the
ProjectMember that e.g. port with given fixed_ip or mac_address will not
be allowed (exception was raised because net_owner check failed) even
thoug it should be possible through the net_owner rule in policy.

This patch fixes mocking get_network function in unit tests module for
the port RBAC policies and it also updates unit tests accordingly to
make them pass.

Change-Id: I4c26403e237afdb8934dda65fef3b12c99a5f689
Signed-off-by: Slawek Kaplonski <skaplons@redhat.com>
(cherry picked from commit a48b715e8b)
2025-10-02 10:21:56 +02:00
2016-06-28 22:46:19 +02:00
2024-06-06 11:13:54 +05:30
2025-03-03 21:37:54 +09:00
2025-01-20 09:45:43 -05:00
2025-01-20 09:45:43 -05:00
2025-03-17 08:04:05 +00:00
2014-05-16 13:40:04 -04:00
2024-11-15 11:44:27 -05:00
2025-01-16 06:08:39 +00:00
2024-11-27 11:32:09 +09:00
2025-01-09 18:10:18 -05:00
2024-01-12 17:44:09 +09:00
2024-10-01 11:18:46 -04:00

OpenStack Neutron

image

Neutron is an OpenStack project to provide "network connectivity as a service" between interface devices (e.g., vNICs) managed by other OpenStack services (e.g., Nova).

To learn more about neutron:

If you would like to contribute to Neutron, please read the file CONTRIBUTING.rst or see the Neutron contributor guide:

https://docs.openstack.org/neutron/latest/contributor/contributing.html

Get in touch via email. Use [Neutron] in your subject.

Description
OpenStack Networking (Neutron)
Readme 1 GiB
Languages
Python 99.7%
Shell 0.3%