From: garciadeblas Date: Tue, 18 Jun 2024 08:14:48 +0000 (+0200) Subject: Revert "Disable temporarily failing test cases in heal_02 and heal_03" X-Git-Tag: release-v16.0-start~11 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F29%2F14429%2F1;p=osm%2Ftests.git Revert "Disable temporarily failing test cases in heal_02 and heal_03" This reverts commit d5da573fdca069040c9daa7bd9693ec0bae34c70. Change-Id: I84b393189394eea49daeabb9cb83aecfbe7f9270 Signed-off-by: garciadeblas --- diff --git a/robot-systest/testsuite/heal_02-scale_vdu_healing.robot b/robot-systest/testsuite/heal_02-scale_vdu_healing.robot index 0e2defd..ffdcb85 100644 --- a/robot-systest/testsuite/heal_02-scale_vdu_healing.robot +++ b/robot-systest/testsuite/heal_02-scale_vdu_healing.robot @@ -161,22 +161,22 @@ Heal Manual Scale VDU Variable Should Exist ${VNF_MANUALSCALE_ID} msg=VNF is not available Heal Network Service ${NS_ID} --vnf ${VNF_MANUALSCALE_ID} --cause "Heal VM of manual_scale_vnf" --vdu ${VDU_MANUALSCALE_NAME} --count-index 1 --run-day1 -# Check VNF After Healing -# [Documentation] Check that the IDs of the VM and volumes have not changed after healing. -# Variable Should Exist ${VNF_MANUALSCALE_ID} msg=VNF is not available -# @{ip_list}= Get Vnf Vdur IPs ${VNF_MANUALSCALE_ID} -# Should Be Equal ${ip_list} ${MANUALSCALE_IP_LIST} IP addresses have changed after healing -# ${id}= Get VNF VIM ID ${VNF_MANUALSCALE_ID} -# @{ids}= Split String ${id} -# Should Be Equal ${VDU_MANUALSCALE_IDS}[0] ${ids}[0] VDU[0] id has changed after healing -# Should Not Be Equal ${VDU_MANUALSCALE_IDS}[1] ${ids}[1] VDU[1] id has not changed after healing -# Should Be Equal ${VDU_MANUALSCALE_IDS}[2] ${ids}[2] VDU[2] id has changed after healing -# ${ip}= Get Vdu Attribute ${VNF_MANUALSCALE_ID} ip-address 1 -# ${stdout}= Execute Remote Command Check Rc Return Output ${ip} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} sudo ls ${VNF_MANUALSCALE_CLOUDINIT_FILE} -# Log ${stdout} -# Check If Remote File Exists ${ip} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} ${VNF_MANUALSCALE_DAY1_FILE} -# ${vim_info}= Get Vdu Attribute ${VNF_MANUALSCALE_ID} vim_info 1 -# Should Contain ${vim_info} id: ${FLAVOR_ID} msg=Flavor ID is incorrect +Check VNF After Healing + [Documentation] Check that the IDs of the VM and volumes have not changed after healing. + Variable Should Exist ${VNF_MANUALSCALE_ID} msg=VNF is not available + @{ip_list}= Get Vnf Vdur IPs ${VNF_MANUALSCALE_ID} + Should Be Equal ${ip_list} ${MANUALSCALE_IP_LIST} IP addresses have changed after healing + ${id}= Get VNF VIM ID ${VNF_MANUALSCALE_ID} + @{ids}= Split String ${id} + Should Be Equal ${VDU_MANUALSCALE_IDS}[0] ${ids}[0] VDU[0] id has changed after healing + Should Not Be Equal ${VDU_MANUALSCALE_IDS}[1] ${ids}[1] VDU[1] id has not changed after healing + Should Be Equal ${VDU_MANUALSCALE_IDS}[2] ${ids}[2] VDU[2] id has changed after healing + ${ip}= Get Vdu Attribute ${VNF_MANUALSCALE_ID} ip-address 1 + ${stdout}= Execute Remote Command Check Rc Return Output ${ip} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} sudo ls ${VNF_MANUALSCALE_CLOUDINIT_FILE} + Log ${stdout} + Check If Remote File Exists ${ip} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} ${VNF_MANUALSCALE_DAY1_FILE} + ${vim_info}= Get Vdu Attribute ${VNF_MANUALSCALE_ID} vim_info 1 + Should Contain ${vim_info} id: ${FLAVOR_ID} msg=Flavor ID is incorrect Update VIM Objects [Documentation] Retrieve all VMs and volumes from the NS and stores them in VIM_VDUS and VIM_VOLUMES lists. diff --git a/robot-systest/testsuite/heal_03-multiple_healing.robot b/robot-systest/testsuite/heal_03-multiple_healing.robot index d77c88b..ec520c9 100644 --- a/robot-systest/testsuite/heal_03-multiple_healing.robot +++ b/robot-systest/testsuite/heal_03-multiple_healing.robot @@ -172,21 +172,21 @@ Heal VDUs Variable Should Exist ${VNF_VOLUMES_ID} msg=Volume VNF is not available Heal Network Service ${NS_ID} --vnf ${VNF_VOLUMES_ID} --cause "Heal myvdu1 of several_volumes_vnf" --vdu several_volumes-VM --vnf ${VNF_MANUALSCALE_ID} --cause "Heal two VMs of manual_scale_vnf" --vdu mgmtVM --count-index 1 --run-day1 --vdu mgmtVM --count-index 2 -# Check VNFs After Healing -# [Documentation] Check that the IDs of the VM and volumes have not changed after healing. -# Variable Should Exist ${VNF_MANUALSCALE_ID} msg=Manual scale VNF is not available -# Variable Should Exist ${VNF_VOLUMES_ID} msg=Volume VNF is not available -# ${id}= Get VNF VIM ID ${VNF_MANUALSCALE_ID} -# @{ids}= Split String ${id} -# Should Be Equal ${VDU_MANUALSCALE_IDS}[0] ${ids}[0] VDU[0] id has changed after healing -# Should Not Be Equal ${VDU_MANUALSCALE_IDS}[1] ${ids}[1] VDU[1] id has not changed after healing -# Should Not Be Equal ${VDU_MANUALSCALE_IDS}[2] ${ids}[2] VDU[2] id has not changed after healing -# ${id}= Get VNF VIM ID ${VNF_VOLUMES_ID} -# Should Not Be Equal ${id} ${VDU_VOLUMES_ID} VDU id has not changed after healing -# ${ip}= Get Vdu Attribute ${VNF_MANUALSCALE_ID} ip-address 1 -# ${stdout}= Execute Remote Command Check Rc Return Output ${ip} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} sudo ls ${VNF_MANUALSCALE_CLOUDINIT_FILE} -# Log ${stdout} -# Check If Remote File Exists ${ip} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} ${VNF_MANUALSCALE_DAY1_FILE} +Check VNFs After Healing + [Documentation] Check that the IDs of the VM and volumes have not changed after healing. + Variable Should Exist ${VNF_MANUALSCALE_ID} msg=Manual scale VNF is not available + Variable Should Exist ${VNF_VOLUMES_ID} msg=Volume VNF is not available + ${id}= Get VNF VIM ID ${VNF_MANUALSCALE_ID} + @{ids}= Split String ${id} + Should Be Equal ${VDU_MANUALSCALE_IDS}[0] ${ids}[0] VDU[0] id has changed after healing + Should Not Be Equal ${VDU_MANUALSCALE_IDS}[1] ${ids}[1] VDU[1] id has not changed after healing + Should Not Be Equal ${VDU_MANUALSCALE_IDS}[2] ${ids}[2] VDU[2] id has not changed after healing + ${id}= Get VNF VIM ID ${VNF_VOLUMES_ID} + Should Not Be Equal ${id} ${VDU_VOLUMES_ID} VDU id has not changed after healing + ${ip}= Get Vdu Attribute ${VNF_MANUALSCALE_ID} ip-address 1 + ${stdout}= Execute Remote Command Check Rc Return Output ${ip} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} sudo ls ${VNF_MANUALSCALE_CLOUDINIT_FILE} + Log ${stdout} + Check If Remote File Exists ${ip} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} ${VNF_MANUALSCALE_DAY1_FILE} Update VIM Objects [Documentation] Retrieve all VMs and volumes from the NS and stores them in VIM_VDUS and VIM_VOLUMES lists.