X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Ftsdr%2FHBase%2F020_FlowMetrics.robot;h=bf5edf932275b33ffc4014836339a16b990a55e0;hb=64fa60b9810a6884acb1712e1f7533577cbc0d64;hp=1213ab14fdadc55415205f10e7b6d3691078ea2a;hpb=af0da3b174a87b0e570187c513147aeb06e93163;p=integration%2Ftest.git diff --git a/csit/suites/tsdr/HBase/020_FlowMetrics.robot b/csit/suites/tsdr/HBase/020_FlowMetrics.robot index 1213ab14fd..bf5edf9322 100644 --- a/csit/suites/tsdr/HBase/020_FlowMetrics.robot +++ b/csit/suites/tsdr/HBase/020_FlowMetrics.robot @@ -12,9 +12,14 @@ Variables ../../../variables/Variables.py *** Variables *** @{FLOW_METRICS} PacketCount ByteCount -${TSDR_FLOWSTATS} tsdr:list FLOWSTATS *** Test Cases *** +Init Variables + [Documentation] Initialize ODL version specific variables + log ${ODL_VERSION} + Run Keyword If '${ODL_VERSION}' == 'stable-lithium' Init Variables Lithium + ... ELSE Init Variables Master + Verification of TSDR FlowMetrics [Documentation] Verify the TSDR FlowStats Wait Until Keyword Succeeds 120s 1s Verify the Metric is Collected? ${TSDR_FLOWSTATS} PacketCount @@ -28,7 +33,7 @@ Verification of FlowMetrics-PacketCount on HBase Client ${output}= Issue Command On Karaf Console ${tsdr_cmd} ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 90 ${Line1}= Get Line ${output} 0 Should Contain ${Line1} PacketCount - Verify the Metrics Attributes on Hbase Client PacketCount Node:openflow:1,Table:0 FLOWSTATS + Verify the Metrics Attributes on Hbase Client PacketCount ${node_connector} ${flowstats} Verification of FlowMetrics-BytesCount on HBase Client [Documentation] Verify the FlowStats-ByteCount on both Karaf Console and Hbase Client @@ -36,4 +41,17 @@ Verification of FlowMetrics-BytesCount on HBase Client ${output}= Issue Command On Karaf Console ${tsdr_cmd} ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 90 ${Line1}= Get Line ${output} 0 Should Contain ${Line1} ByteCount - Verify the Metrics Attributes on Hbase Client ByteCount Node:openflow:1,Table:0 FLOWSTATS + Verify the Metrics Attributes on Hbase Client ByteCount ${node_connector} ${flowstats} + +*** Keywords *** +Init Variables Master + [Documentation] Sets variables specific to latest(master) version + Set Suite Variable ${TSDR_FLOWSTATS} tsdr:list FLOWSTATS + set Suite Variable ${node_connector} Node:openflow:1,Table:0 + set suite Variable ${flowstats} FLOWSTATS + +Init Variables Lithium + [Documentation] Sets variables specific to Lithium version + Set Suite Variable ${TSDR_FLOWSTATS} tsdr:list FlowStats + set Suite Variable ${node_connector} openflow:1_0 + set suite Variable ${flowstats} FlowMetrics