summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYang Xu <yang.xu3@huawei.com>2018-12-06 21:57:32 -0500
committerYang Xu <yang.xu3@huawei.com>2018-12-06 21:57:43 -0500
commit1a3c5f5218648f26970ddaa61dcfbb59f5abd685 (patch)
tree936e4c73d2fb2165dd7e65b13681c792bff504b8
parent7d980399e1e6a0f6de51d90bf4919d6e677cbbb0 (diff)
Test script for CDS vFWNG model distribution fails
Change-Id: Ib7013fc250381ecdd36f3c07557daec31b809cbb Issue-ID: INT-757 Signed-off-by: Yang Xu <yang.xu3@huawei.com>
-rw-r--r--robot/resources/asdc_interface.robot8
1 files changed, 7 insertions, 1 deletions
diff --git a/robot/resources/asdc_interface.robot b/robot/resources/asdc_interface.robot
index 70727d95..11829354 100644
--- a/robot/resources/asdc_interface.robot
+++ b/robot/resources/asdc_interface.robot
@@ -209,7 +209,7 @@ Setup ASDC Catalog Resource CDS Properties
\ Run Keyword If '${name}'=='abstract_vpg' Set To Dictionary ${dict} nfc_function=vpg nfc_naming_policy=SDNC_Policy.ONAP_VPG_NAMING_TIMESTAMP
\ Run Keyword If '${name}'=='abstract_vsn' Set To Dictionary ${dict} nfc_function=vsn nfc_naming_policy=SDNC_Policy.ONAP_VSN_NAMING_TIMESTAMP
\ ${data}= Fill JSON Template File ${ASDC_RESOURCE_INSTANCE_VNF_PROPERTIES_TEMPLATE} ${dict}
- \ ${response}= Set ASDC Catalog Resource Component Instance Properties ${catalog_resource_id} ${uniqueId} ${data}
+ \ ${response}= Set CDS Catalog Resource Component Instance Properties ${catalog_resource_id} ${uniqueId} ${data}
\ Log To Console resp=${response}
# Set vnf inputs
@@ -423,6 +423,12 @@ Set ASDC Catalog Resource Component Instance Properties
${resp}= Run ASDC Post Request ${ASDC_FE_CATALOG_SERVICES_PATH}/${component_parent_service_id}/resourceInstance/${catalog_resource_id}/properties ${data} ${ASDC_DESIGNER_USER_ID} ${ASDC_FE_ENDPOINT}
[Return] ${resp.json()}
+Set CDS Catalog Resource Component Instance Properties
+ [Documentation] sets an asdc Catalog Resource by its id
+ [Arguments] ${catalog_resource_id} ${component_instance_id} ${data}
+ ${resp}= Run ASDC Post Request ${ASDC_FE_CATALOG_RESOURCES_PATH}/${catalog_resource_id}/resourceInstance/${component_instance_id}/inputs ${data} ${ASDC_DESIGNER_USER_ID} ${ASDC_FE_ENDPOINT}
+ [Return] ${resp.json()}
+
Set ASDC Catalog Resource VNF Inputs
[Documentation] sets an asdc Catalog Resource by its id
[Arguments] ${catalog_resource_id} ${data}