From d481ad9918d383c82335e52db4a360964194ef5d Mon Sep 17 00:00:00 2001 From: "stark, steven" Date: Tue, 19 May 2020 09:52:46 -0700 Subject: [VVP] Updates to VVP test-engine Removing module level variables. These can cause import errors if certain modules are not imported "properly". Removing these lets developers import modules as-needed. Add support for VNF category. The VNF category is looked up based on the category chosen by the VSP. Increase test coverage. Update ovp testsuite based on these changes. Issue-ID: VVP-418 Signed-off-by: stark, steven Change-Id: I074375b8afae1adff60e0730d6f8a69d01cdd475 --- onap-client/onap_client/sdc/client.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'onap-client/onap_client/sdc/client.py') diff --git a/onap-client/onap_client/sdc/client.py b/onap-client/onap_client/sdc/client.py index 8863e07..c1923da 100644 --- a/onap-client/onap_client/sdc/client.py +++ b/onap-client/onap_client/sdc/client.py @@ -78,4 +78,23 @@ CATALOG_RESOURCES = { sdc_properties.SDC_DESIGNER_PASSWORD, ), }, + "GET_RESOURCE_CATEGORIES": { + "verb": "GET", + "description": "Queries SDC for resource categories", + "uri": partial( + "{endpoint}{service_path}".format, + endpoint=sdc_properties.SDC_BE_ENDPOINT, + service_path=sdc_properties.SDC_RESOURCE_CATEGORIES_PATH, + ), + "success_code": 200, + "headers": { + "Accept": "application/json", + "Content-Type": "application/json", + "USER_ID": sdc_properties.SDC_DESIGNER_USER_ID, + }, + "auth": ( + sdc_properties.GLOBAL_SDC_USERNAME, + sdc_properties.GLOBAL_SDC_PASSWORD, + ), + }, } -- cgit 1.2.3-korg