aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources/test_templates/vnf_orchestration_test_template.robot
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2019-05-08 13:55:32 -0400
committerDR695H <dr695h@att.com>2019-05-09 10:41:52 -0400
commit910097ed0b1f7922715bfead98d3be6809fe2479 (patch)
treeb8700a356eaeb81f38d34a186ce0e4dbb879c790 /robot/resources/test_templates/vnf_orchestration_test_template.robot
parentc5febc8b6264a08484b23ababec8f912cdd8f70d (diff)
upgrade to python3 libraries
basing the code off of robot framework 3.1.1 instead of 3.0, replacing selenium2lib with selnium lib and selenium3, replacing extendedselenium with angularjs lib. Fixing most warnings and all errors from these moves Change-Id: Ifed68c5b8cd28c7bbdc80ee7245860914bdee5b4 Issue-ID: TEST-151 Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robot/resources/test_templates/vnf_orchestration_test_template.robot')
-rw-r--r--robot/resources/test_templates/vnf_orchestration_test_template.robot22
1 files changed, 11 insertions, 11 deletions
diff --git a/robot/resources/test_templates/vnf_orchestration_test_template.robot b/robot/resources/test_templates/vnf_orchestration_test_template.robot
index b3a4bdda..ec22265b 100644
--- a/robot/resources/test_templates/vnf_orchestration_test_template.robot
+++ b/robot/resources/test_templates/vnf_orchestration_test_template.robot
@@ -19,7 +19,7 @@ Resource ../heatbridge.robot
Library OpenstackLibrary
-Library ExtendedSelenium2Library
+Library SeleniumLibrary
Library UUID
Library Collections
Library JSONUtils
@@ -71,7 +71,7 @@ Orchestrate VNF
${vnf_name_index}= Set Variable 0
${vf_module_name_list}= Create List
${uuid}= Evaluate str("${uuid}")[:8]
- :for ${vnf} in @{vnflist}
+ :FOR ${vnf} IN @{vnflist}
# APPC max is 50 characters
\ ${vnf_name}= Catenate Ete_${vnf}_${uuid}_${vnf_name_index}
\ ${vf_module_name}= Catenate Vfmodule_Ete_${vnf}_${uuid}_${vnf_name_index}
@@ -118,7 +118,7 @@ Orchestrate Demo VNF
Validate Service Instance ${service_instance_id} ${service} ${customer_name}
${vnflist}= Get From Dictionary ${GLOBAL_SERVICE_VNF_MAPPING} ${service}
${generic_vnfs}= Create Dictionary
- :for ${vnf} in @{vnflist}
+ :FOR ${vnf} IN @{vnflist}
\ ${vnf_name}= Catenate Ete_${vnf}_${uuid}
\ ${vf_module_name}= Catenate Vfmodule_Demo_${vnf}_${uuid}
\ ${vnf_type}= Set Variable ${vnf_json_resources['${vnf}']['vnf_type']}
@@ -160,7 +160,7 @@ Get Catalog Resource
${base_name}= Get Name Pattern ${vnf}
${keys}= Get Dictionary Keys ${resources}
- :for ${key} in @{keys}
+ :FOR ${key} IN @{keys}
\ ${cr}= Get From Dictionary ${resources} ${key}
\ Return From Keyword If '${base_name}' in '${cr['allArtifacts']['heat1']['artifactDisplayName']}' ${cr}
\ Run Keyword If 'heat2' in ${cr['allArtifacts']} Return From Keyword If '${base_name}' in '${cr['allArtifacts']['heat2']['artifactDisplayName']}' ${cr}
@@ -170,7 +170,7 @@ Get Name Pattern
[Documentation] To support services with multiple VNFs, we need to dig the vnf type out of the SDC catalog resources to select in the VID UI
[Arguments] ${vnf}
${list}= Get From Dictionary ${GLOBAL_SERVICE_TEMPLATE_MAPPING} ${vnf}
- :for ${dict} in @{list}
+ :FOR ${dict} IN @{list}
\ ${base_name}= Get From Dictionary ${dict} name_pattern
\ Return From Keyword If '${dict['isBase']}' == 'true' ${base_name}
Fail Unable to locate base name pattern
@@ -237,23 +237,23 @@ Delete VNF
[Documentation] Called at the end of a test case to tear down the VNF created by Orchestrate VNF
${lcp_region}= Get Openstack Region
${list}= Create List
- Set Test Variable ${KEYPAIRS} ${list}
# remove duplicates, sort vFW-> vPKG , revers to get vPKG > vFWSNK
${sorted_stack_names}= Create List
${sorted_stack_names}= Remove Duplicates ${STACK_NAMES}
Sort List ${sorted_stack_names}
Reverse List ${sorted_stack_names}
- :for ${stack} in @{sorted_stack_names}
- \ Get Stack Keypairs ${stack}
+ :FOR ${stack} IN @{sorted_stack_names}
+ \ ${keypair_name}= Get Stack Keypairs ${stack}
+ \ Append To List ${list} ${keypair_name}
Teardown VVG Server
#Teardown VLB Closed Loop Hack
Run Keyword and Ignore Error Teardown VID ${SERVICE_INSTANCE_ID} ${lcp_region} ${TENANT_NAME} ${CUSTOMER_NAME}
#
- :for ${stack} in @{sorted_stack_names}
+ :FOR ${stack} IN @{sorted_stack_names}
\ Run Keyword and Ignore Error Teardown Stack ${stack}
\ Log Stack Deleted ${stack}
# only needed if stack deleted but not keypair
- :for ${key_pair} in @{KEYPAIRS}
+ :FOR ${key_pair} IN @{list}
\ Run Keyword and Ignore Error Delete Stack Keypair ${key_pair}
\ Log Key pair Deleted ${key_pair}
Log VNF Deleted
@@ -282,7 +282,7 @@ Get Stack Keypairs
Log ${stack_info}
${stack_id}= Get From Dictionary ${stack_info} id
${key_pair_status} ${keypair_name}= Run Keyword And Ignore Error Get From Dictionary ${stack_info} key_name
- Append To List ${KEYPAIRS} ${keypair_name}
+ [Return] ${keypair_name}
Delete Stack Keypair
[Documentation] Delete keypairs from openstack