Adding verify controller log to scalability test.
authorLuis Gomez <ecelgp@gmail.com>
Tue, 28 Apr 2015 04:03:47 +0000 (21:03 -0700)
committerLuis Gomez <ecelgp@gmail.com>
Tue, 28 Apr 2015 04:19:53 +0000 (21:19 -0700)
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>
test/csit/libraries/AAAKeywords.txt
test/csit/libraries/KarafKeywords.txt
test/csit/libraries/Scalability.txt
test/csit/libraries/Utils.txt

index d44d5d18cd6c46a5f718194e23005de861c752e2..acae6b129b260c7e1bc5d55abec0604e8639cd4b 100644 (file)
@@ -3,7 +3,7 @@ Library           ./RequestsLibrary.py
 Variables         ../variables/Variables.py
 
 *** Variables ***
-${WORKSPACE}      /opt/jenkins-integration/workspace/shared-controller
+${WORKSPACE}      /tmp
 ${BUNDLEFOLDER}    distribution-karaf-0.3.0-SNAPSHOT
 ${AUTHN_CFG_FILE}    ${WORKSPACE}/${BUNDLEFOLDER}/etc/org.opendaylight.aaa.authn.cfg
 ${CONTROLLER_USER}  ${MININET_USER}
index 3a4e95dd87966178ffe30530733315a4579d87db..bb44ce400c9e9cca440d1ecd7ba8860cd7221b8c 100644 (file)
@@ -3,6 +3,8 @@ Library           SSHLibrary
 Library           OperatingSystem
 
 *** Variables ***
+${WORKSPACE}            /tmp
+${BUNDLEFOLDER}         distribution-karaf-0.3.0-SNAPSHOT
 ${karaf_shell_port}     8101
 ${karaf_prompt}         opendaylight-user
 ${karaf_user}           karaf
index da3f2315f76eb8ce7261493a92502cedb9092b4a..066a2a70f1db90be6c6ed0e067e3e87d9f4927fd 100644 (file)
@@ -1,5 +1,6 @@
 *** Settings ***
 Library           SSHLibrary
+Resource          Utils.txt
 
 *** Variables ***
 ${linux_prompt}    >
@@ -8,25 +9,27 @@ ${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}
-    ${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}
+    \    ${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}
-    \    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}
-    \    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}
-    \    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}
-    \    Return From Keyword If    '${status}' == 'FAIL'
+    \    Exit For Loop If    '${status}' == 'FAIL'
     \    ${max-switches}    Convert To String    ${switches}
     [Return]    ${max-switches}
 
index 963c7ce66ed64efd8d8d59a236606f067e68038b..0d2a6d8b5615e674f5353086ed85ff285368ac54 100644 (file)
@@ -131,4 +131,4 @@ Verify Controller Is Not Dead
     [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