summaryrefslogtreecommitdiffstats
path: root/robot
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-07 03:00:32 +0000
commit74cfb8631cfa9e779143cba54ead90ccccf0b585 (patch)
tree2fad0491d1f7b5053736b01c258ddb94e8439f93 /robot
parent19a4d2dad02aae14636654402df10b185803be58 (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>
Diffstat (limited to 'robot')
-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 118b655a..6eb8b81e 100644
--- a/robot/resources/asdc_interface.robot
+++ b/robot/resources/asdc_interface.robot
@@ -353,7 +353,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
@@ -593,6 +593,12 @@ Set ASDC Catalog Resource Component Instance Properties For Resource
${resp}= Run ASDC Post Request ${ASDC_FE_CATALOG_RESOURCES_PATH}/${catalog_parent_resource_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}