X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Ftsdr%2FCassandra%2F030_FlowTableMetrics.robot;h=297a27b18fa717b4bd7c82a05fba7a134b3eb7f8;hb=94651ca9711d8eb316721775561e815830bc6c7e;hp=7ae2492c44e2d51e1b5e2a5ac384a000e12bcd65;hpb=0d670c3a120c1e5a9b9b372cb2c58a672f729d50;p=integration%2Ftest.git diff --git a/csit/suites/tsdr/Cassandra/030_FlowTableMetrics.robot b/csit/suites/tsdr/Cassandra/030_FlowTableMetrics.robot index 7ae2492c44..297a27b18f 100644 --- a/csit/suites/tsdr/Cassandra/030_FlowTableMetrics.robot +++ b/csit/suites/tsdr/Cassandra/030_FlowTableMetrics.robot @@ -23,7 +23,6 @@ ${packetmatched} flow-table-statistics/packets-matched @{openflow_packetmatched} *** Test Cases *** - Verification of TSDR Cassandra Feature Installation [Documentation] Install and Verify the TSDR Cassandra Features COMMENT Install a Feature odl-tsdr-cassandra-all ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 60 @@ -32,9 +31,7 @@ Verification of TSDR Cassandra Feature Installation Verify Feature Is Installed odl-tsdr-openflow-statistics-collector 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 Flow Table Stats Values from Openflow plugin @@ -44,77 +41,57 @@ Getting all Tables from Openflow Plugin Append To List ${openflow_packetlookup} ${ret} ${ret}= Get Stats XML ${OPERATIONAL_NODES_API}/node/openflow:3/table/0/ ${packetlookup} Append To List ${openflow_packetlookup} ${ret} - Set Suite Variable @{openflow_packetlookup} - - ${ret}= Get Stats XML ${OPERATIONAL_NODES_API}/node/openflow:1/table/0/ ${activeflows} Append To List ${openflow_activeflows} ${ret} ${ret}= Get Stats XML ${OPERATIONAL_NODES_API}/node/openflow:2/table/0/ ${activeflows} Append To List ${openflow_activeflows} ${ret} ${ret}= Get Stats XML ${OPERATIONAL_NODES_API}/node/openflow:3/table/0/ ${activeflows} Append To List ${openflow_activeflows} ${ret} - Set Suite Variable @{openflow_activeflows} - ${ret}= Get Stats XML ${OPERATIONAL_NODES_API}/node/openflow:1/table/0/ ${packetmatched} Append To List ${openflow_packetmatched} ${ret} ${ret}= Get Stats XML ${OPERATIONAL_NODES_API}/node/openflow:2/table/0/ ${packetmatched} Append To List ${openflow_packetmatched} ${ret} ${ret}= Get Stats XML ${OPERATIONAL_NODES_API}/node/openflow:3/table/0/ ${packetmatched} Append To List ${openflow_packetmatched} ${ret} - Set Suite Variable @{openflow_packetmatched} - - - Verification of FlowStats-Attributes on Cassandra Data Store [Documentation] Verify the InterfaceMetrics has been updated on Cassandra Data Store Copy TSDR tables - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:1 | grep DC=FLOWTABLESTATS | grep MN=PacketLookup | grep RK=Node:openflow:1,Table:0 + ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:1 | grep DC=FLOWTABLESTATS | grep MN=PacketLookup | grep RK=Node:openflow:1,Table:0 Append To List ${tsdr_pl} ${ret_val1} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:2 | grep DC=FLOWTABLESTATS | grep MN=PacketLookup | grep RK=Node:openflow:2,Table:0 + ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:2 | grep DC=FLOWTABLESTATS | grep MN=PacketLookup | grep RK=Node:openflow:2,Table:0 Append To List ${tsdr_pl} ${ret_val1} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:3 | grep DC=FLOWTABLESTATS | grep MN=PacketLookup | grep RK=Node:openflow:3,Table:0 + ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:3 | grep DC=FLOWTABLESTATS | grep MN=PacketLookup | grep RK=Node:openflow:3,Table:0 Append To List ${tsdr_pl} ${ret_val1} - - - - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:1 | grep DC=FLOWTABLESTATS | grep MN=ActiveFlows | grep RK=Node:openflow:1,Table:0 + ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:1 | grep DC=FLOWTABLESTATS | grep MN=ActiveFlows | grep RK=Node:openflow:1,Table:0 Append To List ${tsdr_af} ${ret_val1} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:2 | grep DC=FLOWTABLESTATS | grep MN=ActiveFlows | grep RK=Node:openflow:2,Table:0 + ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:2 | grep DC=FLOWTABLESTATS | grep MN=ActiveFlows | grep RK=Node:openflow:2,Table:0 Append To List ${tsdr_af} ${ret_val1} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:3 | grep DC=FLOWTABLESTATS | grep MN=ActiveFlows | grep RK=Node:openflow:3,Table:0 + ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:3 | grep DC=FLOWTABLESTATS | grep MN=ActiveFlows | grep RK=Node:openflow:3,Table:0 Append To List ${tsdr_af} ${ret_val1} - - - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:1 | grep DC=FLOWTABLESTATS | grep MN=PacketMatch | grep RK=Node:openflow:1,Table:0 + ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:1 | grep DC=FLOWTABLESTATS | grep MN=PacketMatch | grep RK=Node:openflow:1,Table:0 Append To List ${tsdr_pm} ${ret_val1} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:2 | grep DC=FLOWTABLESTATS | grep MN=PacketMatch | grep RK=Node:openflow:2,Table:0 + ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:2 | grep DC=FLOWTABLESTATS | grep MN=PacketMatch | grep RK=Node:openflow:2,Table:0 Append To List ${tsdr_pm} ${ret_val1} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:3 | grep DC=FLOWTABLESTATS | grep MN=PacketMatch | grep RK=Node:openflow:3,Table:0 + ${ret_val1}= Verify the Metrics Attributes on Cassandra Client grep NID=openflow:3 | grep DC=FLOWTABLESTATS | grep MN=PacketMatch | grep RK=Node:openflow:3,Table:0 Append To List ${tsdr_pm} ${ret_val1} - - - Comparing Flow Table Metrics [Documentation] Comparing Flow table values between Cassandra and openflow plugin. - - : FOR ${xml_val} ${tsdr_val} IN ZIP ${openflow_packetlookup} ${tsdr_pl} - \ Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 5 - - : FOR ${xml_val} ${tsdr_val} IN ZIP ${openflow_activeflows} ${tsdr_af} - \ Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 5 - - : FOR ${xml_val} ${tsdr_val} IN ZIP ${openflow_packetmatched} ${tsdr_pm} - \ Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 5 - - + FOR ${xml_val} ${tsdr_val} IN ZIP ${openflow_packetlookup} ${tsdr_pl} + Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 5 + END + FOR ${xml_val} ${tsdr_val} IN ZIP ${openflow_activeflows} ${tsdr_af} + Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 5 + END + FOR ${xml_val} ${tsdr_val} IN ZIP ${openflow_packetmatched} ${tsdr_pm} + Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 5 + END *** Keywords *** Initialize the Tsdr Suite COMMENT Initialize the Cassandra for TSDR Initialize Cassandra Tables Metricval -