Tidy updated test suites
[integration/test.git] / csit / suites / tsdr / Cassandra / 020_FlowMetrics.robot
index b611bac127d2ac77e35684942f59fc3a74f1bd80..0cdf5934c180ad82fc2ea93f43a5d9f217ae04cf 100644 (file)
@@ -11,11 +11,10 @@ Resource          ../../../libraries/TsdrUtils.robot
 Variables         ../../../variables/Variables.py
 
 *** Variables ***
-
 @{FLOW_METRICS}    PacketCount    ByteCount
 ${TSDR_FLOWSTATS}    tsdr:list FlowStats
 ${packet_count}    flow/flow-statistics/packet-count
-${byte_count}    flow/flow-statistics/byte-count
+${byte_count}     flow/flow-statistics/byte-count
 @{tsdr_op1}
 @{tsdr_op2}
 @{tsdr_op3}
@@ -26,9 +25,7 @@ ${byte_count}    flow/flow-statistics/byte-count
 @{tsdr_op2_bc}
 @{tsdr_op3_bc}
 
-
 *** Test Cases ***
-
 Verification of TSDR Cassandra Feature Installation
     [Documentation]    Install and Verify the TSDR Cassandra Features
     Verify Feature Is Installed    odl-tsdr-cassandra
@@ -36,33 +33,25 @@ Verification of TSDR Cassandra Feature Installation
     Start Tsdr Suite
     Ping All Hosts
     Wait Until Keyword Succeeds    5x    30 sec    Check Metric path    24\\d+|25\\d+
-    Wait Until Keyword Succeeds    5x    30 sec    Check Metric val     \\d{5}
-
+    Wait Until Keyword Succeeds    5x    30 sec    Check Metric val    \\d{5}
 
 Getting all Tables from Openflow Plugin
     [Documentation]    Getting Flowstats from openflow plugin
-
     @{openflow_1}=    Return all XML matches    ${OPERATIONAL_NODES_API}/node/openflow:1/table/0/    flow/id
     @{openflow_2}=    Return all XML matches    ${OPERATIONAL_NODES_API}/node/openflow:2/table/0/    flow/id
     @{openflow_3}=    Return all XML matches    ${OPERATIONAL_NODES_API}/node/openflow:3/table/0/    flow/id
-
-    Set Suite Variable           @{openflow_1}
+    Set Suite Variable    @{openflow_1}
     Set Suite Variable    @{openflow_2}
     Set Suite Variable    @{openflow_3}
-
     @{openflow_1_packetcount}=    Return all XML matches    ${OPERATIONAL_NODES_API}/node/openflow:1/table/0/    ${packet_count}
     @{openflow_2_packetcount}=    Return all XML matches    ${OPERATIONAL_NODES_API}/node/openflow:2/table/0/    ${packet_count}
     @{openflow_3_packetcount}=    Return all XML matches    ${OPERATIONAL_NODES_API}/node/openflow:3/table/0/    ${packet_count}
-
     Set Suite Variable    @{openflow_1_packetcount}
     Set Suite Variable    @{openflow_2_packetcount}
     Set Suite Variable    @{openflow_3_packetcount}
-
-
     @{openflow_1_bytecount}=    Return all XML matches    ${OPERATIONAL_NODES_API}/node/openflow:1/table/0/    ${byte_count}
     @{openflow_2_bytecount}=    Return all XML matches    ${OPERATIONAL_NODES_API}/node/openflow:2/table/0/    ${byte_count}
     @{openflow_3_bytecount}=    Return all XML matches    ${OPERATIONAL_NODES_API}/node/openflow:3/table/0/    ${byte_count}
-
     Set Suite Variable    @{openflow_1_bytecount}
     Set Suite Variable    @{openflow_2_bytecount}
     Set Suite Variable    @{openflow_3_bytecount}
@@ -71,29 +60,23 @@ Verification of FlowStats-Attributes on Cassandra Data Store
     [Documentation]    Verify the InterfaceMetrics has been updated on Cassandra Data Store
     Copy TSDR tables
     : FOR    ${flow}    IN    @{openflow_1}
-    \   ${ret_val1}=    Verify the Metrics Attributes on Cassandra Client    grep NID=openflow:1 | grep DC=FLOWSTATS | grep MN=PacketCount | grep -F 'RK=Node:openflow:1,Table:0,Flow:${flow}'
-    \   Append To List    ${tsdr_op1_pc}    ${ret_val1}
-
+    \    ${ret_val1}=    Verify the Metrics Attributes on Cassandra Client    grep NID=openflow:1 | grep DC=FLOWSTATS | grep MN=PacketCount | grep -F 'RK=Node:openflow:1,Table:0,Flow:${flow}'
+    \    Append To List    ${tsdr_op1_pc}    ${ret_val1}
     : FOR    ${flow}    IN    @{openflow_2}
-    \   ${ret_val1}=    Verify the Metrics Attributes on Cassandra Client    grep NID=openflow:2 | grep DC=FLOWSTATS | grep MN=PacketCount | grep -F 'RK=Node:openflow:2,Table:0,Flow:${flow}'
-    \   Append To List    ${tsdr_op2_pc}    ${ret_val1}
-
+    \    ${ret_val1}=    Verify the Metrics Attributes on Cassandra Client    grep NID=openflow:2 | grep DC=FLOWSTATS | grep MN=PacketCount | grep -F 'RK=Node:openflow:2,Table:0,Flow:${flow}'
+    \    Append To List    ${tsdr_op2_pc}    ${ret_val1}
     : FOR    ${flow}    IN    @{openflow_3}
-    \   ${ret_val1}=    Verify the Metrics Attributes on Cassandra Client    grep NID=openflow:3 | grep DC=FLOWSTATS | grep MN=PacketCount | grep -F 'RK=Node:openflow:3,Table:0,Flow:${flow}'
-    \   Append To List    ${tsdr_op3_pc}    ${ret_val1}
-
+    \    ${ret_val1}=    Verify the Metrics Attributes on Cassandra Client    grep NID=openflow:3 | grep DC=FLOWSTATS | grep MN=PacketCount | grep -F 'RK=Node:openflow:3,Table:0,Flow:${flow}'
+    \    Append To List    ${tsdr_op3_pc}    ${ret_val1}
     : FOR    ${flow}    IN    @{openflow_1}
-    \   ${ret_val1}=    Verify the Metrics Attributes on Cassandra Client    grep NID=openflow:1 | grep DC=FLOWSTATS | grep MN=ByteCount | grep -F 'RK=Node:openflow:1,Table:0,Flow:${flow}'
-    \   Append To List    ${tsdr_op1_bc}    ${ret_val1}
-
+    \    ${ret_val1}=    Verify the Metrics Attributes on Cassandra Client    grep NID=openflow:1 | grep DC=FLOWSTATS | grep MN=ByteCount | grep -F 'RK=Node:openflow:1,Table:0,Flow:${flow}'
+    \    Append To List    ${tsdr_op1_bc}    ${ret_val1}
     : FOR    ${flow}    IN    @{openflow_2}
-    \   ${ret_val1}=    Verify the Metrics Attributes on Cassandra Client    grep NID=openflow:2 | grep DC=FLOWSTATS | grep MN=ByteCount | grep -F 'RK=Node:openflow:2,Table:0,Flow:${flow}'
-    \   Append To List    ${tsdr_op2_bc}    ${ret_val1}
-
+    \    ${ret_val1}=    Verify the Metrics Attributes on Cassandra Client    grep NID=openflow:2 | grep DC=FLOWSTATS | grep MN=ByteCount | grep -F 'RK=Node:openflow:2,Table:0,Flow:${flow}'
+    \    Append To List    ${tsdr_op2_bc}    ${ret_val1}
     : FOR    ${flow}    IN    @{openflow_3}
-    \   ${ret_val1}=    Verify the Metrics Attributes on Cassandra Client    grep NID=openflow:3 | grep DC=FLOWSTATS | grep MN=ByteCount | grep -F 'RK=Node:openflow:3,Table:0,Flow:${flow}'
-    \   Append To List    ${tsdr_op3_bc}    ${ret_val1}
-
+    \    ${ret_val1}=    Verify the Metrics Attributes on Cassandra Client    grep NID=openflow:3 | grep DC=FLOWSTATS | grep MN=ByteCount | grep -F 'RK=Node:openflow:3,Table:0,Flow:${flow}'
+    \    Append To List    ${tsdr_op3_bc}    ${ret_val1}
     Set Suite Variable    @{tsdr_op1_pc}
     Set Suite Variable    @{tsdr_op2_pc}
     Set Suite Variable    @{tsdr_op3_pc}
@@ -101,37 +84,24 @@ Verification of FlowStats-Attributes on Cassandra Data Store
     Set Suite Variable    @{tsdr_op2_bc}
     Set Suite Variable    @{tsdr_op3_bc}
 
-
 Comparing Packet Count Metrics
     [Documentation]    Comparing Packet count values between Cassandra and openflow plugin
-
     : FOR    ${xml_val}    ${tsdr_val}    IN ZIP    ${openflow_1_packetcount}    ${tsdr_op1_pc}
     \    Compare Tsdr XML Metrics    ${xml_val}    ${tsdr_val}    20
-
     : FOR    ${xml_val}    ${tsdr_val}    IN ZIP    ${openflow_2_packetcount}    ${tsdr_op2_pc}
     \    Compare Tsdr XML Metrics    ${xml_val}    ${tsdr_val}    20
-
     : FOR    ${xml_val}    ${tsdr_val}    IN ZIP    ${openflow_3_packetcount}    ${tsdr_op3_pc}
     \    Compare Tsdr XML Metrics    ${xml_val}    ${tsdr_val}    20
 
-
-
 Comparing Byte Count Metrics
     [Documentation]    Comparing byte count values between Cassandra and openflow plugin
-
     : FOR    ${xml_val}    ${tsdr_val}    IN ZIP    ${openflow_1_bytecount}    ${tsdr_op1_bc}
     \    Compare Tsdr XML Metrics    ${xml_val}    ${tsdr_val}    20
-
     : FOR    ${xml_val}    ${tsdr_val}    IN ZIP    ${openflow_2_bytecount}    ${tsdr_op2_bc}
     \    Compare Tsdr XML Metrics    ${xml_val}    ${tsdr_val}    20
-
     : FOR    ${xml_val}    ${tsdr_val}    IN ZIP    ${openflow_3_bytecount}    ${tsdr_op3_bc}
     \    Compare Tsdr XML Metrics    ${xml_val}    ${tsdr_val}    20
 
-
-
-
 *** Keywords ***
 Initialize the Tsdr Suite
     Initialize Cassandra Tables Metricval
-