Resource ../lib/ssh_lib.resource
Resource ../lib/openstack_lib.resource
-Test Tags heal_03 cluster_heal daily
+Test Tags heal_03 cluster_heal daily regression
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
[Documentation] Get NS identifier and stores as suite variable to be used later on.
[Tags] cleanup
${variables}= Get Variables
- IF not "\${ns_id}" in ${variables}
+ IF not "\${ns_id}" in "${variables}"
${id}= Get Ns Id ${NS_NAME}
Set Suite Variable ${NS_ID} ${id}
END
${volumes_attached}= Get Server Property ${vdu_id} volumes_attached
${match}= Get Regexp Matches ${volumes_attached} '([0-9a-f\-]+)' 1
IF ${match} != @{EMPTY}
- IF not ${match}[0] in @{VIM_VOLUMES}
+ IF not "${match}[0]" in "@{VIM_VOLUMES}"
Append To List ${VIM_VOLUMES} ${match}[0]
END
END
[Documentation] Get VDU ID and IP addresses of the charm VNF and stores them in VDU_CHARM_IDS and CHARM_IP_LIST.
Variable Should Exist ${NS_ID} msg=NS is not available
${variables}= Get Variables
- IF not "\${vnf_charm_id}" in ${variables}
+ IF not "\${vnf_charm_id}" in "${variables}"
${vnf_id}= Get Vnf Id ${NS_ID} ${VNF_CHARM_INDEX}
Set Suite Variable ${VNF_CHARM_ID} ${vnf_id}
END
@{vdu_ids}= Split String ${id}
Append To List ${vdu_updated} @{vdu_ids}
FOR ${id} IN @{vdu_ids}
- IF not ${id} in @{VIM_VDUS}
+ IF not "${id}" in "@{VIM_VDUS}"
Append To List ${VIM_VDUS} ${id}
END
END
${volumes_attached}= Get Server Property ${vdu_id} volumes_attached
${match}= Get Regexp Matches ${volumes_attached} '([0-9a-f\-]+)' 1
IF ${match} != @{EMPTY}
- IF not ${match}[0] in @{VIM_VOLUMES}
+ IF not "${match}[0]" in "@{VIM_VOLUMES}"
Append To List ${VIM_VOLUMES} ${match}[0]
END
END
Log Checking if server ${vdu_id} is still in VIM
${status}= Run Keyword And Ignore Error Get Server Property ${vdu_id} id
Log ${status}[0]
- IF ${status}[0] == 'PASS'
+ IF '${status}[0]' == 'PASS'
${error}= Set Variable 1
Log Deleting server ${vdu_id}
Run Keyword And Ignore Error Delete Server ${vdu_id}