neutron/neutron/tests/unit/db
Slawek Kaplonski 428f7a8418 [S-RBAC] Add service role in neutron policy
RBAC community wide goal phase-2[1] is to add service
role for the service APIs policy rule.
This patch adds new "service_api" role in policies, deprecates old rule
"context_is_advsvc" as this had basically same goal but for consistency
reasons we want now to have it named "service_api" as in other policies
for other projects.
This patch also adds unit tests to ensure what is allowed and what is
forbidden for the service role user.

[1] https://governance.openstack.org/tc/goals/selected/consistent-and-secure-rbac.html#phase-2

Closes-Bug: #2026182

Change-Id: Iaa1a3a491d310c2304f6500c6e5d2b9c31a72fa8
2023-10-06 07:55:05 +00:00
..
metering [S-RBAC] Switch to new policies by default 2023-04-21 16:22:42 +02:00
quota Create a single method to set the quota usage dirty bit 2023-07-06 06:06:23 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test__utils.py ``Session.autocommit`` parameter is removed 2022-08-10 17:15:04 +02:00
test_agents_db.py ovs-agent: React to DB down just like to server down 2023-07-25 12:10:14 +02:00
test_agentschedulers_db.py [S-RBAC] Switch to new policies by default 2023-04-21 16:22:42 +02:00
test_allowedaddresspairs_db.py Switch to new engine facade in test_allowedaddresspairs_db module 2020-03-20 02:18:04 +01:00
test_db_base_plugin_common.py Replace to_dict() calls with a function decorator 2015-08-03 11:42:25 +03:00
test_db_base_plugin_v2.py [S-RBAC] Add service role in neutron policy 2023-10-06 07:55:05 +00:00
test_dvr_mac_db.py [S-RBAC] Switch to new policies by default 2023-04-21 16:22:42 +02:00
test_extraroute_db.py Use payloads for ROUTER AFTER_ callbacks 2021-08-09 14:13:28 +00:00
test_ipam_backend_mixin.py [S-RBAC] Switch to new policies by default 2023-04-21 16:22:42 +02:00
test_ipam_pluggable_backend.py [S-RBAC] Switch to new policies by default 2023-04-21 16:22:42 +02:00
test_l3_db.py Prevent internal IP change for floating IP 2023-08-25 11:17:24 +08:00
test_l3_dvr_db.py [OVN] Prevent Trunk creation/deletion with parent port bound 2023-06-30 14:51:27 +00:00
test_l3_extra_gws_db.py Allow Multiple External Gateways 2023-05-24 20:40:59 +03:00
test_l3_hamode_db.py [UT] Reduce the binding retry loop in ``L3HATestFramework`` 2023-08-30 15:13:43 +00:00
test_migration.py [UT] Adjust autogen_process_directives for alembic-1.12.0+ 2023-09-04 08:42:44 +00:00
test_ovn_hash_ring_db.py [OVN] Cleanup old Hash Ring node entries 2023-08-29 12:09:00 +01:00
test_ovn_revision_numbers_db.py [S-RBAC] Switch to new policies by default 2023-04-21 16:22:42 +02:00
test_portsecurity_db.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_portsecurity_db_common.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_provisioning_blocks.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_rbac_db_mixin.py Initialize config in DietTestCase class 2023-07-19 12:58:58 +02:00
test_securitygroups_db.py Default SG rules - use new rules templates to create rules for SGs 2023-08-30 10:18:19 +00:00
test_segments_db.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00