Remove remnants of sfc project
[integration/test.git] / csit / suites / tsdr / H2 / 030_FlowTableMetrics.robot
index dec85bb649bfd8271480b0df87de0e5f2d078ef3..7924c1778c05c0c8523c9274faeea59d3f4ca08d 100644 (file)
@@ -1,29 +1,44 @@
 *** Settings ***
-Documentation     Test suite for H2 DataStore Flow Table Metrics Verification
-Suite Setup       Start Tsdr Suite
-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 Flow Table Metrics 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         Start Tsdr Suite
+Suite Teardown      Stop Tsdr Suite
+
 
 *** Variables ***
-@{FLOWTABLE_METRICS}    ActiveFlows    PacketLookup    PacketMatch
-${TSDR_FLOWTABLE_STATS}    tsdr:list FlowTableStats
+@{FLOWTABLE_METRICS}        ActiveFlows    PacketLookup    PacketMatch
+${TSDR_FLOWTABLE_STATS}     tsdr:list FlowTableStats
+
 
 *** Test Cases ***
 Verification of TSDR FlowTableStats
     [Documentation]    Verify the TSDR FlowiTableStats
-    Wait Until Keyword Succeeds    60s    1s    Verify the Metric is Collected?    ${TSDR_FLOWTABLE_STATS}| grep ActiveFlow    FLOWTABLESTATS
-    ${output}=    Issue Command On Karaf Console    ${TSDR_FLOWTABLE_STATS}| grep openflow:1 | head    ${ODL_SYSTEM_IP}    ${KARAF_SHELL_PORT}    180
-    : FOR    ${list}    IN    @{FLOWTABLE_METRICS}
-    \    Should Contain    ${output}    ${list}
+    Wait Until Keyword Succeeds
+    ...    60s
+    ...    1s
+    ...    Verify the Metric is Collected?
+    ...    ${TSDR_FLOWTABLE_STATS}| grep ActiveFlow
+    ...    FLOWTABLESTATS
+    ${output}=    Issue Command On Karaf Console
+    ...    ${TSDR_FLOWTABLE_STATS}| grep openflow:1 | head
+    ...    ${ODL_SYSTEM_IP}
+    ...    ${KARAF_SHELL_PORT}
+    ...    180
+    FOR    ${list}    IN    @{FLOWTABLE_METRICS}
+        Should Contain    ${output}    ${list}
+    END
 
 Verify FlowTableStats-Attributes on H2 Datastore using JDBC Client
     [Documentation]    Verify the PortStats,attributes on H2 Datastore using JDBC Client
-    : FOR    ${list}    IN    @{FLOWTABLE_METRICS}
-    \    ${output}=    Query Metrics on H2 Datastore    FLOWTABLESTATS    ${list}
-    \    Should Contain    ${output}    ${list}
+    FOR    ${list}    IN    @{FLOWTABLE_METRICS}
+        ${output}=    Query Metrics on H2 Datastore    FLOWTABLESTATS    ${list}
+        Should Contain    ${output}    ${list}
+    END