aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources/vid/create_vid_vnf.robot
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2019-05-24 15:05:03 -0400
committerDR695H <dr695h@att.com>2019-07-22 18:00:55 -0400
commit102f3207fbec080e81d4abaa9c7277cbf5d52a37 (patch)
tree54d33855afdfc35271a78d7c4ae0913b111d9806 /robot/resources/vid/create_vid_vnf.robot
parentc1103fba68e3461b136b044daec3339d0e6575f7 (diff)
move the main so interface to use onaplibrary
left some cloud config and direct instantiate seperate Change-Id: I4c508d5403c660f83b14b98585111b9219bae6b7 Issue-ID: TEST-158 Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robot/resources/vid/create_vid_vnf.robot')
-rw-r--r--robot/resources/vid/create_vid_vnf.robot11
1 files changed, 6 insertions, 5 deletions
diff --git a/robot/resources/vid/create_vid_vnf.robot b/robot/resources/vid/create_vid_vnf.robot
index a0110a2b..cdcee11a 100644
--- a/robot/resources/vid/create_vid_vnf.robot
+++ b/robot/resources/vid/create_vid_vnf.robot
@@ -5,12 +5,11 @@ Library SeleniumLibrary 60
Library String
Library DateTime
Library RequestsLibrary
-
-Resource ../so_interface.robot
+Resource ../global_properties.robot
Resource vid_interface.robot
+Library ONAPLibrary.SO WITH NAME SO
*** Keywords ***
-
Create VID VNF
[Documentation] Creates a VNF instance using VID for passed instance id with the passed service instance name
[Arguments] ${service_instance_id} ${service_instance_name} ${product_family} ${lcp_region} ${tenant} ${vnf_type} ${customer} ${line_of_business}=LOB-Demonstration ${platform}=Platform-Demonstration
@@ -84,7 +83,8 @@ Delete VID VNF
${response text}= Get Text xpath=//div[@ng-controller='deletionDialogController']//div[@ng-controller= 'msoCommitController']/pre[@class = 'log ng-binding']
${request_id}= Parse Request Id ${response text}
- Poll MSO Get Request ${GLOBAL_MSO_STATUS_PATH}${request_id} COMPLETE
+ ${auth}= Create List ${GLOBAL_MSO_USERNAME} ${GLOBAL_MSO_PASSWORD}
+ ${resp}= SO.Run Polling Get Request ${GLOBAL_SO_ENDPOINT} ${GLOBAL_MSO_STATUS_PATH}${request_id} auth=${auth}
Create VID VNF module
[Arguments] ${service_instance_id} ${vf_module_name} ${lcp_region} ${TENANT} ${VNF_TYPE} ${customer} ${vnf_name}
@@ -124,7 +124,8 @@ Create VID VNF module
${instance_id}= Parse Instance Id ${response text}
${request_id}= Parse Request Id ${response text}
- Poll MSO Get Request ${GLOBAL_MSO_STATUS_PATH}${request_id} COMPLETE
+ ${auth}= Create List ${GLOBAL_MSO_USERNAME} ${GLOBAL_MSO_PASSWORD}
+ ${resp}= SO.Run Polling Get Request ${GLOBAL_SO_ENDPOINT} ${GLOBAL_MSO_STATUS_PATH}${request_id} auth=${auth}
[Return] ${instance_id}
Wait For Add VF Module