X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=robot-systest%2Ftestsuite%2Fheal_01-volume_vdu_healing.robot;h=f0270c0d2501b379db2690125927e86945e6c110;hb=58710335f2db1e82ec171784891b7cbee71fd360;hp=04fe06dd1335af57dcbac7d543b72b8e0133ef48;hpb=8f18bfd167417d0066fb5741c7af25a6649e84df;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 04fe06d..f0270c0 100644 --- a/robot-systest/testsuite/heal_01-volume_vdu_healing.robot +++ b/robot-systest/testsuite/heal_01-volume_vdu_healing.robot @@ -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 @@ -125,20 +119,17 @@ Check VDU Disks Delete Persistent Volume VDU - [Tags] verify Variable Should Exist ${vdu_volumes_id} msg=VDU is not available 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}