nova/nova/tests/unit/api/openstack
Ghanshyam Mann ab084d4d1d Modify remaining APIs as per RBAC new guidelines
As per the RBAC new direction, we will allow
project resources operation to be performed by
the project scoped token only and system user will
be allowed to perform system level operation only
not project resources specific.

Details about new direction can be found in community-wide
goal
- https://governance.openstack.org/tc/goals/selected/consistent-and-secure-rbac.html

This commit modify remaining APIs as per the new guidelines.

Also, allow all project admin to list the other project limits. This is
what we allowed in legacy policy and until we have domain admin or other
way to list other project resources/info, we will keep that behaviour.

Also modifying and adding tests for four cases:
1. enforce_scope=False + legacy rule (current default policies)
2. enforce_scope=False + No legacy rule
3. enforce_scope=True + legacy rule
4. enforce_scope=True + no legacy rule (end goal of new RBAC)

Partial implement blueprint policy-defaults-refresh-2

Change-Id: I006d47aa2f4678a06c78057bcf407302abbe4907
2022-02-24 10:24:55 -06:00
..
compute Modify remaining APIs as per RBAC new guidelines 2022-02-24 10:24:55 -06:00
__init__.py
common.py
fakes.py objects: Stop querying the main DB for keypairs 2021-10-18 20:26:18 +01:00
test_api_version_request.py Replace 'fake' with a real project ID 2019-09-30 14:40:20 +09:00
test_auth.py Noauth should also use request_id from compute_req_id.py 2018-04-04 14:21:01 -04:00
test_common.py Remove six.text_type (2/2) 2020-12-13 11:26:35 +00:00
test_faults.py
test_legacy_v2_compatible_wrapper.py
test_mapper.py
test_requestlog.py api: Log correct client IP if load balancer in use 2021-06-09 22:20:38 +00:00
test_wsgi.py Remove six.iteritems/itervalues/iterkeys 2020-11-07 03:25:26 +00:00
test_wsgi_app.py db: Post reshuffle cleanup 2021-08-09 15:34:40 +01:00