aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources/demo_preload.robot
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2019-09-16 13:21:47 -0400
committerBrian Freeman <bf1936@att.com>2019-09-17 14:40:35 +0000
commitcccad65a0c963240df76dde1944c9e7da25cc4da (patch)
tree344f1423b8676e5a95aa221c7bfa323d24400f19 /robot/resources/demo_preload.robot
parent6d269fdcbcf374a273f7ac0b68559951ea336654 (diff)
add needed import and move cds to common folder
Issue-ID: TEST-214 Change-Id: I7356bd28230adbdd7e56f6488000da71719469d8 Signed-off-by: DR695H <dr695h@att.com>
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