aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources/demo_preload.robot
diff options
context:
space:
mode:
Diffstat (limited to 'robot/resources/demo_preload.robot')
-rw-r--r--robot/resources/demo_preload.robot12
1 files changed, 12 insertions, 0 deletions
diff --git a/robot/resources/demo_preload.robot b/robot/resources/demo_preload.robot
index 58ab1faa..be971f72 100644
--- a/robot/resources/demo_preload.robot
+++ b/robot/resources/demo_preload.robot
@@ -9,6 +9,7 @@ Resource vid/vid_interface.robot
Resource consul_interface.robot
Resource policy_interface.robot
Resource aai/create_availability_zone.robot
+Resource so/direct_instantiate.robot
Library ONAPLibrary.Utilities
Library Collections
@@ -17,6 +18,7 @@ Library SeleniumLibrary
Library RequestsLibrary
Library ONAPLibrary.Templating WITH NAME Templating
Library ONAPLibrary.AAI WITH NAME AAI
+Library ONAPLibrary.SO WITH NAME SO
*** Variables ***
@@ -190,6 +192,16 @@ Instantiate VNF
Log Update Tca ControlLoopName
Update Tca ControlLoopName ${model_invariant_id}
+Instantiate VNF CDS
+ [Arguments] ${service} ${vf_module_label}=NULL
+ ${status} ${value}= Run Keyword And Ignore Error Distribute Model vLB_CDS demoVLB_CDS True
+ ${resp}= Get Service Catalog demoVLB_CDS
+ ${service-uuid}= Set Variable ${resp['uuid']}
+ ${service-invariantUUID}= Set Variable ${resp['invariantUUID']}
+ ${requestid}= CDS Service Instantiate demoVLB_CDS ${service-uuid} ${service-invariantUUID}
+ ${auth}= Create List ${GLOBAL_SO_CATDB_USERNAME } ${GLOBAL_SO_PASSWORD}
+ SO.Run Polling Get Request ${GLOBAL_SO_APIHAND_ENDPOINT} ${GLOBAL_SO_ORCHESTRATION_REQUESTS_PATH}/${requestid} tries=30 interval=60 auth=${auth}
+
Instantiate Demo VNF
[Arguments] ${service} ${vf_module_label}=NULL
${tenant_id} ${tenant_name}= Setup Orchestrate VNF ${GLOBAL_AAI_CLOUD_OWNER} SharedNode OwnerType v1 CloudZone