Update Robot Framework format - step 12
[integration/test.git] / csit / suites / openflowplugin / Bug_Validation / 2429.robot
index 772066693203745e65087ba7c1eff99d5d9d4478..035a36e2545ca8cd92b87968ba545e80714cc7f0 100644 (file)
@@ -1,19 +1,22 @@
 *** Settings ***
-Documentation     OF Handshake threads should be closed if the connection has a
-...               failure. This bug was fixed in the Helium SR3 release but
-...               persisted in to the Lithium release. Once fixed, this will
-...               catch any future regressions
-Metadata          https://bugs.opendaylight.org/show_bug.cgi?id=2429    ${EMPTY}
-Library           OperatingSystem
-Library           SSHLibrary
-Library           Process
-Resource          ../../../libraries/Utils.robot
-Resource          ../../../variables/Variables.robot
+Documentation       OF Handshake threads should be closed if the connection has a
+...                 failure. This bug was fixed in the Helium SR3 release but
+...                 persisted in to the Lithium release. Once fixed, this will
+...                 catch any future regressions
+Metadata            https://bugs.opendaylight.org/show_bug.cgi?id=2429    ${EMPTY}
+
+Library             OperatingSystem
+Library             SSHLibrary
+Library             Process
+Resource            ../../../libraries/Utils.robot
+Resource            ../../../variables/Variables.robot
+
 
 *** Variables ***
-${openflow_port}    6633
-${number_ofconnections_to_fail}    600
-${margin_of_error}    0.05    # percentage
+${openflow_port}                    6633
+${number_ofconnections_to_fail}     600
+${margin_of_error}                  0.05    # percentage
+
 
 *** Test Cases ***
 Bug_2429
@@ -24,25 +27,41 @@ Bug_2429
     ...    a larger number of failed connections will be used and a small margin of error will
     ...    determine if the test is a PASS or FAIL
     Log Environment Details
-    ${controller_pid}=    Get Process ID Based On Regex On Remote System    ${ODL_SYSTEM_IP}    java.*karaf    ${ODL_SYSTEM_USER}
+    ${controller_pid}=    Get Process ID Based On Regex On Remote System
+    ...    ${ODL_SYSTEM_IP}
+    ...    java.*karaf
+    ...    ${ODL_SYSTEM_USER}
     Should Match Regexp    ${controller_pid}    [0-9]+    PID was not discovered
-    ${starting_thread_count}=    Get Process Thread Count On Remote System    ${ODL_SYSTEM_IP}    ${controller_pid}    ${ODL_SYSTEM_USER}
+    ${starting_thread_count}=    Get Process Thread Count On Remote System
+    ...    ${ODL_SYSTEM_IP}
+    ...    ${controller_pid}
+    ...    ${ODL_SYSTEM_USER}
     Repeat Keyword    ${number_ofconnections_to_fail}    Start Process    nc    -w    1    ${ODL_SYSTEM_IP}
     ...    ${openflow_port}
     Run    pkill -f 'nc -w'
     Log Environment Details
-    ${ending_thread_count}=    Get Process Thread Count On Remote System    ${ODL_SYSTEM_IP}    ${controller_pid}    ${ODL_SYSTEM_USER}
+    ${ending_thread_count}=    Get Process Thread Count On Remote System
+    ...    ${ODL_SYSTEM_IP}
+    ...    ${controller_pid}
+    ...    ${ODL_SYSTEM_USER}
     Log Environment Details
     Log    starting count: ${starting_thread_count}\nending count: ${ending_thread_count}
-    ${acceptable_thread_count}=    Evaluate    ${starting_thread_count} + (${number_of_connections_to_fail} * ${margin_of_error})
-    Should Be True    ${ending_thread_count} <= ${acceptable_thread_count}    Final thread count of ${ending_thread_count} exceeds acceptable count: ${acceptable_thread_count}
+    ${acceptable_thread_count}=    Evaluate
+    ...    ${starting_thread_count} + (${number_of_connections_to_fail} * ${margin_of_error})
+    Should Be True
+    ...    ${ending_thread_count} <= ${acceptable_thread_count}
+    ...    Final thread count of ${ending_thread_count} exceeds acceptable count: ${acceptable_thread_count}
     [Teardown]    Report_Failure_Due_To_Bug    2429
 
+
 *** Keywords ***
 Log Environment Details
     [Documentation]    Will display relevant details of the test environement to help aid debugging efforts if
     ...    needed in the future.
-    ${output}=    Get Process ID Based On Regex On Remote System    ${ODL_SYSTEM_IP}    java.*karaf    ${ODL_SYSTEM_USER}
+    ${output}=    Get Process ID Based On Regex On Remote System
+    ...    ${ODL_SYSTEM_IP}
+    ...    java.*karaf
+    ...    ${ODL_SYSTEM_USER}
     Log    ${output}
     ${output}=    Run Command On Remote System    ${ODL_SYSTEM_IP}    netstat -na | grep 6633    ${ODL_SYSTEM_USER}
     Log    ${output}