3 Library OperatingSystem
7 ${BUNDLEFOLDER} distribution-karaf-0.3.0-SNAPSHOT
8 ${karaf_shell_port} 8101
9 ${karaf_prompt} opendaylight-user
11 ${karaf_password} karaf
14 Check Karaf Log File Does Not Have Messages
15 [Arguments] ${ip} ${message} ${log_file}=${WORKSPACE}/${BUNDLEFOLDER}/data/log/karaf.log
16 ${output}= Run Command On Remote System ${ip} grep ${message} ${log_file}
17 Should Not Contain ${output} ${message}
19 Verify Feature Is Installed
20 [Documentation] Will Succeed if the given ${feature_name} is found in the output of "feature:list -i"
21 [Arguments] ${feature_name} ${controller}=${CONTROLLER} ${karaf_port}=${karaf_shell_port}
22 ${output}= Issue Command On Karaf Console feature:list -i | grep ${feature_name} ${controller} ${karaf_port}
23 Should Contain ${output} ${feature_name}
26 Verify Feature Is Not Installed
27 [Documentation] Will Succeed if the given ${feature_name} is NOT found in the output of "feature:list -i"
28 [Arguments] ${feature_name} ${controller}=${CONTROLLER} ${karaf_port}=${karaf_shell_port}
29 ${output}= Issue Command On Karaf Console feature:list -i | grep ${feature_name} ${controller} ${karaf_port}
30 Should Not Contain ${output} ${feature_name}
33 Issue Command On Karaf Console
34 [Documentation] Will execute the given ${cmd} by ssh'ing to the karaf console running on ${CONTROLLER}
35 [Arguments] ${cmd} ${controller}=${CONTROLLER} ${karaf_port}=${karaf_shell_port} ${timeout}=5
36 Open Connection ${controller} port=${karaf_port} prompt=${karaf_prompt} timeout=${timeout}
37 Login ${karaf_user} ${karaf_password}
39 ${output} Read Until ${karaf_prompt}