Fixing some libraries to use right default ${WORKSPACE} and ${BUNDLEFOLDER}.
(We are passing these variables with the pybot command anyway)
Change-Id: Idd2cbb493a51b67af340c5d69edc0ce27554d84b
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
Variables ../variables/Variables.py
*** Variables ***
Variables ../variables/Variables.py
*** Variables ***
-${WORKSPACE} /opt/jenkins-integration/workspace/shared-controller
${BUNDLEFOLDER} distribution-karaf-0.3.0-SNAPSHOT
${AUTHN_CFG_FILE} ${WORKSPACE}/${BUNDLEFOLDER}/etc/org.opendaylight.aaa.authn.cfg
${CONTROLLER_USER} ${MININET_USER}
${BUNDLEFOLDER} distribution-karaf-0.3.0-SNAPSHOT
${AUTHN_CFG_FILE} ${WORKSPACE}/${BUNDLEFOLDER}/etc/org.opendaylight.aaa.authn.cfg
${CONTROLLER_USER} ${MININET_USER}
Library OperatingSystem
*** Variables ***
Library OperatingSystem
*** Variables ***
+${WORKSPACE} /tmp
+${BUNDLEFOLDER} distribution-karaf-0.3.0-SNAPSHOT
${karaf_shell_port} 8101
${karaf_prompt} opendaylight-user
${karaf_user} karaf
${karaf_shell_port} 8101
${karaf_prompt} opendaylight-user
${karaf_user} karaf
*** Settings ***
Library SSHLibrary
*** Settings ***
Library SSHLibrary
*** Variables ***
${linux_prompt} >
*** Variables ***
${linux_prompt} >
Find Max Switches
[Arguments] ${start} ${stop} ${step}
[Documentation] Will find out max switches starting from ${start} till reaching ${stop} and in steps defined by ${step}
Find Max Switches
[Arguments] ${start} ${stop} ${step}
[Documentation] Will find out max switches starting from ${start} till reaching ${stop} and in steps defined by ${step}
- ${max-switches} Set Variable ${1}
+ ${max-switches} Set Variable ${0}
${start} Convert to Integer ${start}
${stop} Convert to Integer ${stop}
${step} Convert to Integer ${step}
: FOR ${switches} IN RANGE ${start} ${stop+1} ${step}
\ Start Mininet Linear ${switches}
${start} Convert to Integer ${start}
${stop} Convert to Integer ${stop}
${step} Convert to Integer ${step}
: FOR ${switches} IN RANGE ${start} ${stop+1} ${step}
\ Start Mininet Linear ${switches}
+ \ ${status} ${result} Run Keyword And Ignore Error Verify Controller Is Not Dead ${CONTROLLER}
+ \ Exit For Loop If '${status}' == 'FAIL'
\ ${status} ${result} Run Keyword And Ignore Error Wait Until Keyword Succeeds ${switches*2} 10s
\ ... Check Every Switch ${switches}
\ ${status} ${result} Run Keyword And Ignore Error Wait Until Keyword Succeeds ${switches*2} 10s
\ ... Check Every Switch ${switches}
- \ Return From Keyword If '${status}' == 'FAIL'
+ \ Exit For Loop If '${status}' == 'FAIL'
\ ${status} ${result} Run Keyword And Ignore Error Wait Until Keyword Succeeds ${switches*2} 10s
\ ... Check Linear Topology ${switches}
\ ${status} ${result} Run Keyword And Ignore Error Wait Until Keyword Succeeds ${switches*2} 10s
\ ... Check Linear Topology ${switches}
- \ Return From Keyword If '${status}' == 'FAIL'
+ \ Exit For Loop If '${status}' == 'FAIL'
\ Stop Mininet
\ ${status} ${result} Run Keyword And Ignore Error Wait Until Keyword Succeeds ${switches*2} 10s
\ ... Check No Switches ${switches}
\ Stop Mininet
\ ${status} ${result} Run Keyword And Ignore Error Wait Until Keyword Succeeds ${switches*2} 10s
\ ... Check No Switches ${switches}
- \ Return From Keyword If '${status}' == 'FAIL'
+ \ Exit For Loop If '${status}' == 'FAIL'
\ ${status} ${result} Run Keyword And Ignore Error Wait Until Keyword Succeeds ${switches*2} 10s
\ ... Check No Topology ${switches}
\ ${status} ${result} Run Keyword And Ignore Error Wait Until Keyword Succeeds ${switches*2} 10s
\ ... Check No Topology ${switches}
- \ Return From Keyword If '${status}' == 'FAIL'
+ \ Exit For Loop If '${status}' == 'FAIL'
\ ${max-switches} Convert To String ${switches}
[Return] ${max-switches}
\ ${max-switches} Convert To String ${switches}
[Return] ${max-switches}
[Arguments] ${controller_ip}=${CONTROLLER}
[Documentation] Will execute any tests to verify the controller is not dead. Some checks are
... Out Of Memory Execptions.
[Arguments] ${controller_ip}=${CONTROLLER}
[Documentation] Will execute any tests to verify the controller is not dead. Some checks are
... Out Of Memory Execptions.
- Check Karaf Log File Does Not Have Messages ${controller_ip} java.lang.OutOfMemoryError
\ No newline at end of file
+ Check Karaf Log File Does Not Have Messages ${controller_ip} java.lang.OutOfMemoryError