*** Settings *** Documentation Test suite for Hbase DataStore Flow Table Stats Verification Library SSHLibrary Library Collections Library String Library ../../../libraries/Common.py Resource ../../../libraries/CompareStream.robot Resource ../../../libraries/KarafKeywords.robot Resource ../../../libraries/TsdrUtils.robot Variables ../../../variables/Variables.py Suite Setup Start Tsdr Suite Suite Teardown Stop Tsdr Suite *** Variables *** ${TSDR_FLOWTABLE_STATS} tsdr:list FLOWTABLESTATS *** Test Cases *** Init Variables [Documentation] Initialize ODL version specific variables using resource CompareStream. Init Variables Master Verification of TSDR FlowTableMetrics [Documentation] Verify the TSDR FlowTableMetrics Wait Until Keyword Succeeds 120s 1s Verify the Metric is Collected? ${TSDR_FLOWTABLE_STATS} openflow ${output}= Issue Command On Karaf Console ... ${TSDR_FLOWTABLE_STATS} ... ${ODL_SYSTEM_IP} ... ${KARAF_SHELL_PORT} ... 30 Should Contain ${output} openflow Verification of FlowTableMetrics on Karaf Console [Documentation] Verify the FlowTableMetrics has been updated thru tsdr:list command on karaf console ${tsdr_cmd}= Concatenate the String ${TSDR_FLOWTABLE_STATS} | grep ActiveFlows | head ${output}= Issue Command On Karaf Console ${tsdr_cmd} ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 90 Should Contain ${output} ActiveFlows Verification of FlowTableMetrics-ActiveFlows on HBase Client [Documentation] Verify the FlowTableMetrics has been updated on HBase Datastore Verify the Metrics Attributes on Hbase Client ActiveFlows ${node_connector} ${flowtablestats} Verification of FlowTableMetrics-PacketMatch on HBase Client [Documentation] Verify the FlowTableMetrics has been updated on HBase Datastore Verify the Metrics Attributes on Hbase Client PacketMatch ${node_connector} ${flowtablestats} Verification of FlowTableMetrics-PacketLookup on HBase Client [Documentation] Verify the FlowTableMetrics has been updated on HBase Datastore Verify the Metrics Attributes on Hbase Client PacketLookup ${node_connector} ${flowtablestats} *** Keywords *** Init Variables Master [Documentation] Sets variables specific to latest(master) version Set Suite Variable ${TSDR_FLOWSTATS} tsdr:list FLOWTABLESTATS set Suite Variable ${node_connector} Node:openflow:1,Table:0 set suite Variable ${flowtablestats} FLOWTABLESTATS