diff options
author | stark, steven <steven.stark@att.com> | 2020-05-27 13:14:22 -0700 |
---|---|---|
committer | stark, steven <steven.stark@att.com> | 2020-05-27 13:14:22 -0700 |
commit | 67bd9e52c527b7a0ed40eba0896bcae23e8eb4f6 (patch) | |
tree | 3d916f7b0b2bb09242fe90722206f1c19e44a470 /onap-client/onap_client/sdc/catalog | |
parent | ae7a1f690808666d0b6b8b79b739e3a865dd93b1 (diff) |
[VVP] Fix VNF description
VNF description field is colliding w/ vnf property description field.
Also updating VSP contributor/owner logic so a user doesn't get added if already present, and the owner doesn't get added if already the owner.
Issue-ID: VVP-419
Signed-off-by: stark, steven <steven.stark@att.com>
Change-Id: Ib8d8daa56c70f6ce548e8eebd9cdc43ff567f1dd
Diffstat (limited to 'onap-client/onap_client/sdc/catalog')
-rw-r--r-- | onap-client/onap_client/sdc/catalog/vnf_catalog.py | 2 | ||||
-rw-r--r-- | onap-client/onap_client/sdc/catalog/vsp_catalog.py | 22 |
2 files changed, 23 insertions, 1 deletions
diff --git a/onap-client/onap_client/sdc/catalog/vnf_catalog.py b/onap-client/onap_client/sdc/catalog/vnf_catalog.py index 2f07fbe..852d008 100644 --- a/onap-client/onap_client/sdc/catalog/vnf_catalog.py +++ b/onap-client/onap_client/sdc/catalog/vnf_catalog.py @@ -74,7 +74,7 @@ CATALOG_RESOURCES = { "resource_type", "categories", "contact_id", - "description", + "vnf_description", ], "success_code": 201, "headers": { diff --git a/onap-client/onap_client/sdc/catalog/vsp_catalog.py b/onap-client/onap_client/sdc/catalog/vsp_catalog.py index a0da6e5..702a1a2 100644 --- a/onap-client/onap_client/sdc/catalog/vsp_catalog.py +++ b/onap-client/onap_client/sdc/catalog/vsp_catalog.py @@ -308,6 +308,28 @@ CATALOG_RESOURCES = { sdc_properties.GLOBAL_SDC_PASSWORD, ), }, + "GET_VSP_PERMISSIONS": { + "verb": "GET", + "description": "Returns the permissions for a VSP.", + "uri": partial( + "{endpoint}{service_path}/{software_product_id}/permissions".format, + endpoint=sdc_properties.SDC_BE_ONBOARD_ENDPOINT, + service_path=sdc_properties.SDC_VENDOR_ITEMS_PATH, + ), + "uri-parameters": ["software_product_id"], + "success_code": 200, + "headers": { + "Accept": "application/json", + "Content-Type": "application/json", + "USER_ID": sdc_properties.SDC_DESIGNER_USER_ID, + "X-TransactionId": str(uuid.uuid4()), + "X-FromAppId": application_id, + }, + "auth": ( + sdc_properties.GLOBAL_SDC_USERNAME, + sdc_properties.GLOBAL_SDC_PASSWORD, + ), + }, "ADD_VSP_CONTRIBUTER": { "verb": "PUT", "description": "Adds a user to a VSP as a contributer", |