Update Robot Framework format - step 15
[integration/test.git] / csit / suites / tsdr / H2 / 050_GroupMetrics.robot
index eb3df2ac64c552624ee6b1c38e53baf379116da2..ffd50b222cc11b7f8ef2bd83647ba6a374f685e4 100644 (file)
@@ -1,25 +1,33 @@
 *** Settings ***
-Documentation     Test suite for H2 DataStore FlowGroup Stats Verification
-Suite Setup       Run Keywords    Start TSDR suite with CPqD Switch    Configuration of FlowGroup on Switch
-Suite Teardown    Stop Tsdr Suite
-Library           SSHLibrary
-Library           Collections
-Library           String
-Library           ../../../libraries/Common.py
-Resource          ../../../libraries/KarafKeywords.robot
-Resource          ../../../libraries/TsdrUtils.robot
-Variables         ../../../variables/Variables.py
+Documentation       Test suite for H2 DataStore FlowGroup Stats Verification
+
+Library             SSHLibrary
+Library             Collections
+Library             String
+Library             ../../../libraries/Common.py
+Resource            ../../../libraries/KarafKeywords.robot
+Resource            ../../../libraries/TsdrUtils.robot
+Variables           ../../../variables/Variables.py
+
+Suite Setup         Run Keywords    Start TSDR suite with CPqD Switch    Configuration of FlowGroup on Switch
+Suite Teardown      Stop Tsdr Suite
+
 
 *** Variables ***
-@{FLOWGROUP_METRICS}    ByteCount    PacketCount    RefCount
-${TSDR_FLOWGROUPSTATS}    tsdr:list FlowGroupStats
-@{FLOWGROUP_HEADER}    MetricName    MetricValue    MetricCategory    MetricDetails
+@{FLOWGROUP_METRICS}        ByteCount    PacketCount    RefCount
+${TSDR_FLOWGROUPSTATS}      tsdr:list FlowGroupStats
+@{FLOWGROUP_HEADER}         MetricName    MetricValue    MetricCategory    MetricDetails
+
 
 *** Test Cases ***
 Verify the FlowGroup Stats attributes exist thru Karaf console
     [Documentation]    Verify the FlowGroupStats attributes exist on Karaf Console
     Wait Until Keyword Succeeds    120s    1s    Verify the Metric is Collected?    ${TSDR_FLOWGROUPSTATS}    ByteCount
-    ${output}=    Issue Command On Karaf Console    ${TSDR_FLOWGROUPSTATS}    ${ODL_SYSTEM_IP}    ${KARAF_SHELL_PORT}    30
+    ${output}=    Issue Command On Karaf Console
+    ...    ${TSDR_FLOWGROUPSTATS}
+    ...    ${ODL_SYSTEM_IP}
+    ...    ${KARAF_SHELL_PORT}
+    ...    30
     FOR    ${list}    IN    @{FLOWGROUP_METRICS}
         Should Contain    ${output}    ${list}
     END
@@ -42,13 +50,16 @@ Verify FlowGroupStats-Attributes on H2 Datastore using JDBC Client
         Should Contain    ${output}    ${list}
     END
 
-*** Keyword ***
+
+*** Keywords ***
 Start TSDR suite with CPqD Switch
     Start Tsdr Suite    user
 
 Configuration of FlowGroup on Switch
     [Documentation]    FlowGroup configuration on CPqD
     Run Command On Remote System    ${TOOLS_SYSTEM_IP}    sudo dpctl unix:/tmp/s1 group-mod cmd=add,group=1,type=all
-    Run Command On Remote System    ${TOOLS_SYSTEM_IP}    sudo dpctl unix:/tmp/s1 flow-mod table=0,cmd=add eth_type=0x800,eth_src=00:01:02:03:04:05 apply:group=1
+    Run Command On Remote System
+    ...    ${TOOLS_SYSTEM_IP}
+    ...    sudo dpctl unix:/tmp/s1 flow-mod table=0,cmd=add eth_type=0x800,eth_src=00:01:02:03:04:05 apply:group=1
     Run Command On Remote System    ${TOOLS_SYSTEM_IP}    sudo dpctl unix:/tmp/s1 ping 10
     Run Command On Remote System    ${TOOLS_SYSTEM_IP}    sudo dpctl unix:/tmp/s2 ping 10