2 Documentation Test suite for Hbase DataStore Flow Stats Verification
3 Suite Setup Start Tsdr Suite
4 Suite Teardown Stop Tsdr Suite
8 Library ../../../libraries/Common.py
9 Resource ../../../libraries/KarafKeywords.robot
10 Resource ../../../libraries/TsdrUtils.robot
11 Variables ../../../variables/Variables.py
14 @{FLOW_METRICS} PacketCount ByteCount
15 ${TSDR_FLOWSTATS} tsdr:list FlowStats
18 Verification of TSDR FlowMetrics
19 [Documentation] Verify the TSDR FlowStats
20 Wait Until Keyword Succeeds 120s 1s Verify the Metric is Collected? ${TSDR_FLOWSTATS} PacketCount
21 ${output}= Issue Command On Karaf Console ${TSDR_FLOWSTATS} ${CONTROLLER} ${KARAF_SHELL_PORT} 30
22 : FOR ${list} IN @{FLOW_METRICS}
23 \ Should Contain ${output} ${list}
25 Verification of FlowMetrics-PacketCount on HBase Client
26 [Documentation] Verify the FlowStats-Packetcount on both Karaf console and Hbase client
27 ${tsdr_cmd}= Concatenate the String ${TSDR_FLOWSTATS} | grep PacketCount | head
28 ${output}= Issue Command On Karaf Console ${tsdr_cmd} ${CONTROLLER} ${KARAF_SHELL_PORT} 90
29 ${Line1}= Get Line ${output} 0
30 Should Contain ${Line1} PacketCount
31 ${q1}= Generate HBase Query FlowMetrics PacketCount_openflow:1_0
32 ${out}= Query the Data from HBaseClient ${q1}
33 Comment ${output}= Get Metrics Value ${Line1}
34 Should Match Regexp ${out} (?mui)PacketCount_openflow
36 Verification of FlowMetrics-BytesCount on HBase Client
37 [Documentation] Verify the FlowStats-ByteCount on both Karaf Console and Hbase Client
38 ${tsdr_cmd}= Concatenate the String ${TSDR_FLOWSTATS} | grep ByteCount | head
39 ${output}= Issue Command On Karaf Console ${tsdr_cmd} ${CONTROLLER} ${KARAF_SHELL_PORT} 90
40 ${Line1}= Get Line ${output} 0
41 Should Contain ${Line1} ByteCount
42 ${q1}= Generate HBase Query FlowMetrics ByteCount_openflow:1_0
43 ${out}= Query the Data from HBaseClient ${q1}
44 Should Match Regexp ${out} (?mui)ByteCount_openflow