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} ${ODL_SYSTEM_IP} ${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} ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 90
29 ${Line1}= Get Line ${output} 0
30 Should Contain ${Line1} PacketCount
31 Verify the Metrics Attributes on Hbase Client PacketCount Node:openflow:1,Table:0 FLOWSTATS
33 Verification of FlowMetrics-BytesCount on HBase Client
34 [Documentation] Verify the FlowStats-ByteCount on both Karaf Console and Hbase Client
35 ${tsdr_cmd}= Concatenate the String ${TSDR_FLOWSTATS} | grep ByteCount | head
36 ${output}= Issue Command On Karaf Console ${tsdr_cmd} ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 90
37 ${Line1}= Get Line ${output} 0
38 Should Contain ${Line1} ByteCount
39 Verify the Metrics Attributes on Hbase Client ByteCount Node:openflow:1,Table:0 FLOWSTATS