Update Robot Framework format - step 12
[integration/test.git] / csit / suites / openflowplugin / Performance_Flow_Config / 010_Rest_Config_Flows.robot
index 8e645e4f7cbff98c24abaa881b80b6c9515daaa9..bd5032e2a3beef8c71f619a6506cd6c3adc7da53 100644 (file)
@@ -1,22 +1,29 @@
 *** Settings ***
-Documentation     Test suite with connection of multiple switches
-Suite Setup       Utils.Start Mininet
-Suite Teardown    Utils.Stop Mininet
-Library           OperatingSystem
-Library           XML
-Library           Process
-Library           RequestsLibrary
-Variables         ../../../variables/Variables.py
-Resource          ../../../libraries/Utils.robot
-Resource          ../../../variables/openflowplugin/Variables.robot
+Documentation       Test suite with connection of multiple switches
+
+Library             OperatingSystem
+Library             XML
+Library             Process
+Library             RequestsLibrary
+Variables           ../../../variables/Variables.py
+Resource            ../../../libraries/Utils.robot
+Resource            ../../../variables/openflowplugin/Variables.robot
+
+Suite Setup         Utils.Start Mininet
+Suite Teardown      Utils.Stop Mininet
+
 
 *** Variables ***
-${switches}       25
-${flows}          2000
-${threads}        5
-${start}          sudo mn --controller=remote,ip=${ODL_SYSTEM_IP} --topo linear,${switches},1 --switch ovsk,protocols=OpenFlow13
-${PERFSCRIPT}     ${CURDIR}/../../../../tools/odl-mdsal-clustering-tests/clustering-performance-test/flow_add_delete_test.py
-${PARSESCRIPT}    ${CURDIR}/../../../../tools/odl-mdsal-clustering-tests/clustering-performance-test/create_plot_data_files.py
+${switches}         25
+${flows}            2000
+${threads}          5
+${start}
+...                 sudo mn --controller=remote,ip=${ODL_SYSTEM_IP} --topo linear,${switches},1 --switch ovsk,protocols=OpenFlow13
+${PERFSCRIPT}
+...                 ${CURDIR}/../../../../tools/odl-mdsal-clustering-tests/clustering-performance-test/flow_add_delete_test.py
+${PARSESCRIPT}
+...                 ${CURDIR}/../../../../tools/odl-mdsal-clustering-tests/clustering-performance-test/create_plot_data_files.py
+
 
 *** Test Cases ***
 Check Switches Connected
@@ -35,16 +42,24 @@ Configure And Deconfigure Flows
     Should Be Equal As Integers    ${result.rc}    0
     ${result}=    Process.Run Process    python    ${PARSESCRIPT}
 
+
 *** Keywords ***
 Start Http Session
     [Documentation]    Starts http session.
     Log    http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML}
-    RequestsLibrary.Create Session    tcsession    http://${ODL_SYSTEM_IP}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS_XML}
+    RequestsLibrary.Create Session
+    ...    tcsession
+    ...    http://${ODL_SYSTEM_IP}:${RESTCONFPORT}
+    ...    auth=${AUTH}
+    ...    headers=${HEADERS_XML}
 
 Are Switches Connected
-    [Arguments]    ${switches}
     [Documentation]    Checks Topology Contains a fix number ${switches} of switces.
-    ${resp}=    RequestsLibrary.Get Request    tcsession    ${RFC8040_OPERATIONAL_TOPO_FLOW1_API}    headers=${ACCEPT_XML}
+    [Arguments]    ${switches}
+    ${resp}=    RequestsLibrary.Get Request
+    ...    tcsession
+    ...    ${RFC8040_OPERATIONAL_TOPO_FLOW1_API}
+    ...    headers=${ACCEPT_XML}
     Log    ${resp.content}
     ${count}=    XML.Get Element Count    ${resp.content}    xpath=node
     Should Be Equal As Numbers    ${count}    ${switches}