aboutsummaryrefslogtreecommitdiffstats
path: root/onap-client/onap_client/sdc/tests/test_vsp.py
diff options
context:
space:
mode:
authorstark, steven <steven.stark@att.com>2020-07-21 15:14:27 -0700
committerstark, steven <steven.stark@att.com>2020-07-21 15:15:34 -0700
commit9df81b14e7203d6c3911f5f36881cb5170afdccc (patch)
tree2a9b5e913e83d0f21b374f068c53df266d3dec56 /onap-client/onap_client/sdc/tests/test_vsp.py
parentb3e7a9fbcbf52ac095ca424f3f17610bf1e8df88 (diff)
[VVP] onap-client refactoring
removing create hook from _init_ for resources removing _init_ for non-abstract resources refactor validation logic enhancing error catch for resource failure adding _on_failure hook Issue-ID: VVP-441 Signed-off-by: stark, steven <steven.stark@att.com> Change-Id: Ia627fc7fd35fe6e112d6f89399701c70b5888077
Diffstat (limited to 'onap-client/onap_client/sdc/tests/test_vsp.py')
-rw-r--r--onap-client/onap_client/sdc/tests/test_vsp.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/onap-client/onap_client/sdc/tests/test_vsp.py b/onap-client/onap_client/sdc/tests/test_vsp.py
index f14e16e..cd35a90 100644
--- a/onap-client/onap_client/sdc/tests/test_vsp.py
+++ b/onap-client/onap_client/sdc/tests/test_vsp.py
@@ -102,15 +102,16 @@ def test_vsp_create():
mockup_client(oc.sdc.vsp)
vsp = sdc.vsp.VSP(
- "vendor_name",
- LICENSE_MODEL_NAME,
- "{}/test.zip".format(THIS_DIR),
- "application/zip",
- VSP_NAME,
- "description",
- "category",
- "sub_category",
+ vendor_name="vendor_name",
+ license_model_name=LICENSE_MODEL_NAME,
+ file_path="{}/test.zip".format(THIS_DIR),
+ file_type="application/zip",
+ software_product_name=VSP_NAME,
+ description="description",
+ category="category",
+ sub_category="sub_category",
contributers=["test123"],
)
+ vsp.create()
assert vsp.tosca == {"name": VSP_NAME}