X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=robot-systest%2Ftestsuite%2Fheal_01-volume_vdu_healing.robot;h=db4ca6445e4b51af1fe3ee148c677732f6cdc7b5;hb=d7f75d7d293999d41af88ef4752906b134f58930;hp=13e662bfd8d9619704b4341322cc8369a6c1d83a;hpb=f4ebaa88025189ede4f073ab8a1f27c95efff867;p=osm%2Ftests.git diff --git a/robot-systest/testsuite/heal_01-volume_vdu_healing.robot b/robot-systest/testsuite/heal_01-volume_vdu_healing.robot index 13e662b..db4ca64 100644 --- a/robot-systest/testsuite/heal_01-volume_vdu_healing.robot +++ b/robot-systest/testsuite/heal_01-volume_vdu_healing.robot @@ -26,7 +26,7 @@ Resource %{ROBOT_DEVOPS_FOLDER}/lib/ns_lib.robot Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot Resource %{ROBOT_DEVOPS_FOLDER}/lib/openstack_lib.robot -Force Tags heal_01 cluster_main daily regression +Force Tags heal_01 cluster_heal daily Suite Teardown Run Keyword And Ignore Error Suite Cleanup @@ -58,24 +58,21 @@ ${success_return_code} 0 *** Test Cases *** Create VNF Descriptors - [Tags] prepare Create VNFD '%{PACKAGES_FOLDER}/${vnfd_charm_pkg}' Create VNFD '%{PACKAGES_FOLDER}/${vnfd_volumes_pkg}' Create NS Descriptor - [Tags] prepare Create NSD '%{PACKAGES_FOLDER}/${nsd_pkg}' Network Service Instance Test - [Tags] prepare ${id}= Create Network Service ${nsd_name} %{VIM_TARGET} ${ns_name} ${ns_config} ${publickey} Set Suite Variable ${ns_id} ${id} Get NS Id - [Tags] verify cleanup + [Tags] cleanup ${variables} Get Variables IF not "\${ns_id}" in "${variables}" ${id}= Get Ns Id ${ns_name} @@ -84,7 +81,6 @@ Get NS Id Get Volume VNF Info - [Tags] verify Variable Should Exist ${ns_id} msg=NS is not available ${ip_addr}= Get Vnf Management Ip Address ${ns_id} ${vnf_several_index} log ${ip_addr} @@ -102,7 +98,6 @@ Get Volume VNF Info Get Volumes Info - [Tags] verify ${rc} ${stdout}= Run and Return RC and Output osm vnfpkg-show ${vnfd_volumes_name} --literal | yq '.vdu[0]."virtual-storage-desc" | length' Should Be Equal As Integers ${rc} ${success_return_code} msg=${stdout} values=False ${num_virtual_storage}= Convert To Integer ${stdout} @@ -114,7 +109,6 @@ Get Volumes Info Check VDU Disks - [Tags] verify Variable Should Exist ${vnf_volumes_ip_addr} msg=VNF is not available Sleep 30 seconds Wait for SSH daemon to be up ${stdout}= Execute Remote Command Check Rc Return Output ${vnf_volumes_ip_addr} ${username} ${password} ${privatekey} sudo lsblk -l @@ -124,21 +118,18 @@ Check VDU Disks Run Keyword If ${num_lines} < ${vnf_num_volumes} Fail msg=Number of disks (${num_lines}) is less than specified in VDU (${vnf_num_volumes}) -Stop Persistent Volume VDU - [Tags] verify +Delete Persistent Volume VDU Variable Should Exist ${vdu_volumes_id} msg=VDU is not available - Stop Server ${vdu_volumes_id} + Delete Server ${vdu_volumes_id} Sleep 20 Heal Persistent Volume VDU - [Tags] verify Variable Should Exist ${vnf_volumes_id} msg=VNF is not available Heal Network Service ${ns_id} --vnf ${vnf_volumes_id} --cause "Heal VM of volumes_vnf" --vdu ${vdu_volumes_name} Check VNF After Healing - [Tags] verify Variable Should Exist ${vnf_volumes_id} msg=VNF is not available @{ip_list}= Get Vnf Vdur IPs ${vnf_volumes_id}