diff options
author | 2021-01-04 11:40:12 -0800 | |
---|---|---|
committer | 2021-01-04 11:40:12 -0800 | |
commit | 76144a9a772f50cb3ec80757d9f1c1ec119eee6a (patch) | |
tree | 72fdaa300f09c5aeaa7fc7eac0ab80b173e522ae /onap-client/onap_client/sdc/tests/test_vnf.py | |
parent | e618989d37d8b786b5b0a9f2fa42bafa32475eed (diff) |
[VVP] ONAP client performance improvement
First of multiple performance patches.
Adding ability to cache data for use by the onap-client.
Changing API call for SDC to get VF and Service models.
Previously to find a service model, onap-client queried
for all models and then searched by name. New api call
to query by name, then find latest version.
Issue-ID: VVP-503
Signed-off-by: stark, steven <steven.stark@att.com>
Change-Id: I071cadbe52163f0b375bc81ac4a9fd640bd5ca4a
Diffstat (limited to 'onap-client/onap_client/sdc/tests/test_vnf.py')
-rw-r--r-- | onap-client/onap_client/sdc/tests/test_vnf.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/onap-client/onap_client/sdc/tests/test_vnf.py b/onap-client/onap_client/sdc/tests/test_vnf.py index da3dd86..06fb750 100644 --- a/onap-client/onap_client/sdc/tests/test_vnf.py +++ b/onap-client/onap_client/sdc/tests/test_vnf.py @@ -65,6 +65,9 @@ def test_vnf_create(): {"name": "nf_role", "value": "dfankafd"}, ] }, + "allVersions": { + "1.0": CATALOG_RESOURCE_ID + }, "name": VNF_NAME, } mockup_catalog_item( @@ -108,6 +111,12 @@ def test_vnf_create(): override_uri_params={"catalog_resource_id": CATALOG_RESOURCE_ID}, ) mockup_catalog_item( + oc.sdc.vnf.catalog_items["GET_RESOURCE_BY_NAME_VERSION"], + override_return_data=return_data, + override_uri_params={"catalog_resource_name": VNF_NAME, "catalog_resource_version": "1.0"}, + status=404, + ) + mockup_catalog_item( oc.sdc.vnf.catalog_items["CERTIFY_CATALOG_RESOURCE"], override_return_data=return_data, override_uri_params={"catalog_resource_id": CATALOG_RESOURCE_ID}, |