Skip to content
Snippets Groups Projects
Commit db4540c7 authored by Bharath Vamsi Adurti's avatar Bharath Vamsi Adurti Committed by garciadeblas
Browse files

Bug 2353 Fixed Unable to update roles for few role permissions


Change-Id: Id340d4e05751a6b67f24d6ebc9d88ddab05dad1d
Signed-off-by: default avatarAdurti <adurti.v@tataelxsi.co.in>
parent a3366938
No related branches found
No related tags found
No related merge requests found
Pipeline #18233 passed with stage
in 4 minutes and 2 seconds
......@@ -350,7 +350,7 @@ valid_url_methods = {
"v1": {
"ns_descriptors_content": {
"METHODS": ("GET", "POST"),
"ROLE_PERMISSION": "nsds:",
"ROLE_PERMISSION": "nsds:content:",
"<ID>": {
"METHODS": ("GET", "PUT", "DELETE"),
"ROLE_PERMISSION": "nsds:id:",
......@@ -368,7 +368,7 @@ valid_url_methods = {
},
"nsd": {
"METHODS": ("GET",), # descriptor inside package
"ROLE_PERMISSION": "nsds:id:content:",
"ROLE_PERMISSION": "nsds:id:nsd:",
},
"artifacts": {
"METHODS": ("GET",),
......@@ -406,7 +406,7 @@ valid_url_methods = {
"v1": {
"vnf_packages_content": {
"METHODS": ("GET", "POST"),
"ROLE_PERMISSION": "vnfds:",
"ROLE_PERMISSION": "vnfds:content:",
"<ID>": {
"METHODS": ("GET", "PUT", "DELETE"),
"ROLE_PERMISSION": "vnfds:id:",
......@@ -420,7 +420,7 @@ valid_url_methods = {
"ROLE_PERMISSION": "vnfds:id:",
"package_content": {
"METHODS": ("GET", "PUT"), # package
"ROLE_PERMISSION": "vnfds:id:",
"ROLE_PERMISSION": "vnfds:id:content:",
"upload_from_uri": {
"METHODS": (),
"TODO": ("POST",),
......@@ -429,7 +429,7 @@ valid_url_methods = {
},
"vnfd": {
"METHODS": ("GET",), # descriptor inside package
"ROLE_PERMISSION": "vnfds:id:content:",
"ROLE_PERMISSION": "vnfds:id:vnfd:",
},
"artifacts": {
"METHODS": ("GET",),
......@@ -461,7 +461,7 @@ valid_url_methods = {
},
"ns_instances_content": {
"METHODS": ("GET", "POST"),
"ROLE_PERMISSION": "ns_instances:",
"ROLE_PERMISSION": "ns_instances:content:",
"<ID>": {
"METHODS": ("GET", "DELETE"),
"ROLE_PERMISSION": "ns_instances:id:",
......
......@@ -45,7 +45,7 @@ resources_to_operations:
##################################### NSDs #####################################
################################################################################
"GET /nsd/v1/ns_descriptors_content": "nsds:get"
"GET /nsd/v1/ns_descriptors_content": "nsds:content:get"
"GET /nsd/v1/ns_descriptors": "nsds:get"
"POST /nsd/v1/ns_descriptors_content": "nsds:content:post"
......@@ -75,7 +75,7 @@ resources_to_operations:
##################################### VNFDs ####################################
################################################################################
"GET /vnfpkgm/v1/vnf_packages_content": "vnfds:get"
"GET /vnfpkgm/v1/vnf_packages_content": "vnfds:content:get"
"GET /vnfpkgm/v1/vnf_packages": "vnfds:get"
"POST /vnfpkgm/v1/vnf_packages_content": "vnfds:content:post"
......@@ -112,7 +112,7 @@ resources_to_operations:
################################## NS Instances ################################
################################################################################
"GET /nslcm/v1/ns_instances_content": "ns_instances:get"
"GET /nslcm/v1/ns_instances_content": "ns_instances:content:get"
"GET /nslcm/v1/ns_instances": "ns_instances:get"
"POST /nslcm/v1/ns_instances_content": "ns_instances:content:post"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment