Resource ClusterManagement.robot
Resource ../variables/daexim/DaeximVariables.robot
Resource ../variables/Variables.robot
-Resource Utils.robot
+Resource SSHKeywords.robot
*** Keywords ***
Verify Export Files
${host_index} Builtin.Convert To Integer ${host_index}
Builtin.Run Keyword And Ignore Error ClusterManagement.Delete_And_Check_Member_List_Or_All ${TOPOLOGY_URL} ${host_index}
${output1} Builtin.Run Keyword and IgnoreError ClusterManagement.Run Bash Command On Member sudo rm -rf ${WORKSPACE}/${BUNDLEFOLDER}/daexim;clear ${host_index}
- # Executing the deletion without sudo prevents "sudo: no tty present and no askpass program specified" errors
${output2} Builtin.Run Keyword and IgnoreError ClusterManagement.Run Bash Command On Member rm -rf ${WORKSPACE}/${BUNDLEFOLDER}/daexim;clear ${host_index}
${output} ClusterManagement.Run Bash Command On Member ls -lart ${WORKSPACE}/${BUNDLEFOLDER} ${host_index}
Builtin.Log ${output}
[Arguments] ${system}=${ODL_SYSTEM_IP} ${prompt}=${DEFAULT_LINUX_PROMPT} ${prompt_timeout}=${DEFAULT_TIMEOUT} ${user}=${ODL_SYSTEM_USER} ${password}=${ODL_SYSTEM_PASSWORD}
[Documentation] Returns the connection of any host. Defaults to controller
${conn_id} SSHLibrary.Open Connection ${system} prompt=${prompt} timeout=${prompt_timeout}
- Utils.Flexible SSH Login ${user} ${password}
+ SSHKeywords.Flexible SSH Login ${user} ${password}
[Return] ${conn_id}
Cleanup Directory