tacker/tacker
Ghanshyam Mann c2ef23210f Add RBAC tests for VNF LCM APIs
Current tests do not have good test coverage of VNF LCM
APIs policies. Either tests for policies do not exist or
if they exist then they do not cover the actual negative
and positive testing.

Basically this commit does the following:

* Add RBAC tests:
  As we are implementing the project personas (project member
  and reader role) in policies, we need to have the enough
  testing coverage of existing policy behavior and to know
  that with new defaults how the access permissions will
  looks like.

* Pass correct target to oslo policy:
  Currently, APIs are not passing the right targets to oslo
  policy, means VNF instance project_id was not passed as target.
  We need to pass the project_id so that we can check the 'onwer'
  permission correctly at RBAC level and RBAC checks pass and
  request goes to fetch the data from DB where project_id
  is checked. For example, GET VNF API requests by a non
  admin user does not check if requester users is from same
  project of requested VNF or not and request pass the oslo
  policy checks and make DB request. Passing the right project_id
  in oslo policy will return the request (if projectA request projectB
  VNF) from policy checks itself. This can be seen in modified
  test_controller.py tests.

Partial implement blueprint implement-project-personas

Change-Id: Ib022397f715c6aa08718a6867d2f2ea19c517c00
2024-03-06 05:15:39 +00:00
..
agent from i18n import _ when quoting them 2019-08-09 09:59:48 +08:00
api Add RBAC tests for VNF LCM APIs 2024-03-06 05:15:39 +00:00
cmd Multi version API support 2021-09-16 01:19:51 +00:00
common External OAuth2.0 Authorization Server Support 2023-09-15 09:18:07 +00:00
conductor Support External Keymanager for auth credential 2023-09-07 06:22:04 +00:00
conf Fix missing import for i18n 2023-04-25 15:45:42 +09:00
db Fix vimConnectionId in ResourceHandle 2023-12-13 15:42:53 +09:00
extensions Merge "Support vimConnectionInfo.extra when CNF deploy" 2022-09-12 11:20:13 +00:00
glance_store Refactor for Performance Improvement 2022-09-14 14:16:33 +09:00
hacking Use LOG.warning instead of deprecated LOG.warn 2021-12-15 01:28:39 +00:00
keymgr External OAuth2.0 Authorization Server Support 2023-09-15 09:18:07 +00:00
locale/de/LC_MESSAGES Imported Translations from Zanata 2023-08-24 04:19:47 +00:00
nfvo External OAuth2.0 Authorization Server Support 2023-09-15 09:18:07 +00:00
objects Fix vnfdId format for VNF package 2023-09-04 00:40:20 +00:00
plugins Fix missing import for i18n 2023-04-25 15:45:42 +09:00
policies Add support cnf auto heal and scale 2022-09-15 18:59:28 +00:00
privileged Fix failure of testing privsep 2022-03-18 19:25:11 +09:00
releasenotes/notes Support for Change External VNF Connectivity 2021-03-26 17:54:12 +09:00
services Drop most of six importings 2020-10-19 12:10:05 +00:00
sol_refactored Merge "Fix Terraform infra-driver instantiate rollback" 2024-01-22 15:49:00 +00:00
tests Add RBAC tests for VNF LCM APIs 2024-03-06 05:15:39 +00:00
tosca Support importing def from local instead of url 2023-09-05 15:26:33 +09:00
vnflcm Support importing def from local instead of url 2023-09-05 15:26:33 +09:00
vnfm Merge "External OAuth2.0 Authorization Server Support" 2023-09-15 11:18:27 +00:00
__init__.py Drop most of six importings 2020-10-19 12:10:05 +00:00
_i18n.py Remove i18n.enable_lazy() call from tacker.cmd 2018-11-14 14:56:52 +05:30
alarm_receiver.py OAuth 2.0 Mutual-TLS Support 2023-02-21 06:14:56 +00:00
auth.py Refactor for Performance Improvement 2022-09-14 14:16:33 +09:00
context.py External OAuth2.0 Authorization Server Support 2023-09-15 09:18:07 +00:00
manager.py Sychronize vnf action tasks 2020-04-22 07:43:50 +00:00
policy.py Enhancement of Tacker API resource access control 2023-03-14 18:01:41 +09:00
service.py Fix two-stage process launcher in tacker-server 2021-04-23 09:33:49 +09:00
version.py Cleanup vim settings 2016-03-28 13:03:56 +02:00
wsgi.py Deprecate Legacy APIs excluding VIM feature 2023-01-27 13:09:44 +00:00