From: vegall Date: Thu, 22 Jun 2023 22:22:44 +0000 (+0000) Subject: Feature 10972: Fixes robotest X-Git-Tag: release-v14.0-start~6 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=1d039866a46a89a3e67de1716388ba14d1846c6f;p=osm%2Ftests.git Feature 10972: Fixes robotest Change-Id: I2dc1530c34866fde54706dc9f422d2fd9df322af Signed-off-by: vegall --- diff --git a/robot-systest/testsuite/basic_31-multivdu_volume_multiattach.robot b/robot-systest/testsuite/basic_31-multivdu_volume_multiattach.robot index ea7deae..c610447 100644 --- a/robot-systest/testsuite/basic_31-multivdu_volume_multiattach.robot +++ b/robot-systest/testsuite/basic_31-multivdu_volume_multiattach.robot @@ -42,10 +42,14 @@ ${ns_name} multivdu_multiattach ${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] } # SSH keys and username to be used -${publickey} %{HOME}/.ssh/id_rsa.pub -${privatekey} %{HOME}/.ssh/id_rsa -${username} ubuntu -${password} ${EMPTY} +${vdu0_username} ubuntu +${vdu0_password} ${EMPTY} +${vdu0_publickey} %{HOME}/.ssh/id_rsa.pub +${vdu0_privatekey} %{HOME}/.ssh/id_rsa +${vdu1_username} ubuntu +${vdu1_password} osmpass +${vdu1_publickey} ${EMPTY} +${vdu1_privatekey} ${EMPTY} ${ns_id} ${EMPTY} ${vnf_member_index} vnf @@ -54,21 +58,21 @@ ${wait_guard_for_vm_boot} 50s *** Test Cases *** -Create Hackfest multivdu VNF Descriptor +Create Multiattach VNF Descriptor Create VNFD '%{PACKAGES_FOLDER}/${vnfd_pkg}' -Create Hackfest Multivdu NS Descriptor +Create Multiattach NS Descriptor Create NSD '%{PACKAGES_FOLDER}/${nsd_pkg}' Network Service Instance Test - ${status} ${message}= Run Keyword And Ignore Error Variable Should Exist ${publickey} - Run Keyword If "${status}" == "FAIL" Set Global Variable ${publickey} ${EMPTY} - ${id}= Create Network Service ${nsd_name} %{VIM_TARGET} ${ns_name} ${ns_config} ${publickey} + ${status} ${message}= Run Keyword And Ignore Error Variable Should Exist ${vdu0_publickey} + Run Keyword If "${status}" == "FAIL" Set Global Variable ${vdu0_publickey} ${EMPTY} + ${id}= Create Network Service ${nsd_name} %{VIM_TARGET} ${ns_name} ${ns_config} ${vdu0_publickey} Set Suite Variable ${ns_id} ${id} Sleep ${wait_guard_for_vm_boot} Waiting for VM's daemons to be up and running @@ -89,9 +93,11 @@ Get Vnf Management Ip Addresses Ensure that VDUs can share data - Execute Remote Command Check Rc Return Output ${mgmnt_ip_addr_0} ${username} ${EMPTY} ${privatekey} sudo mkfs.ext3 -F /dev/vdb && sudo mkdir /shared && sudo mount /dev/vdb /shared && sudo chown ubuntu /shared && echo "osmtest" > /shared/test_file - Execute Remote Command Check Rc Return Output ${mgmnt_ip_addr_1} ${username} osmpass ${privatekey} sudo mkdir /shared && sudo mount /dev/vdb /shared && cat /shared/test_file - ${stdout}= Execute Remote Command Check Rc Return Output ${mgmnt_ip_addr_0} ${username} ${EMPTY} ${privatekey} cat /shared/test_file + Execute Remote Command Check Rc Return Output ${mgmnt_ip_addr_0} ${vdu0_username} ${vdu0_password} ${vdu0_privatekey} sudo mkfs.ext3 -F /dev/vdb && sudo mkdir /shared && sudo mount /dev/vdb /shared && sudo chown ubuntu:ubuntu /shared && echo "osmtest" > /shared/test_file + Sleep 10s + Execute Remote Command Check Rc Return Output ${mgmnt_ip_addr_1} ${vdu1_username} ${vdu1_password} ${vdu1_privatekey} sudo mkdir /shared && sudo mount /dev/vdb /shared && ls /shared + Execute Remote Command Check Rc Return Output ${mgmnt_ip_addr_1} ${vdu1_username} ${vdu1_password} ${vdu1_privatekey} cat /shared/test_file + ${stdout}= Execute Remote Command Check Rc Return Output ${mgmnt_ip_addr_0} ${vdu0_username} ${vdu0_password} ${vdu0_privatekey} cat /shared/test_file Log ${stdout} Should Be Equal ${stdout} osmtest Shared data can't be read