2 Documentation Test suite for HSQLDB DataStore InterfaceMetrics 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 @{INTERFACE_METRICS} TransmittedPackets TransmittedBytes TransmitErrors TransmitDrops ReceivedPackets ReceivedBytes ReceiveOverRunError
15 ... ReceiveFrameError ReceiveErrors ReceiveDrops ReceiveCrcError CollisionCount
16 @{CATEGORY} FLOWGROUPSTATS FLOWMETERSTATS FLOWSTATS FLOWTABLESTATS PORTSTATS QUEUESTATS
17 ${TSDR_PORTSTATS} tsdr:list PORTSTATS
20 Verification of TSDR HSQLDB Feature Installation
21 [Documentation] Install and Verify the TSDR HSQLDB Datastore and JDBC
22 COMMENT Install a Feature odl-tsdr-hsqldb ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 60
23 COMMENT Install a Feature odl-tsdr-openflow-statistics-collector ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 60
24 Wait Until Keyword Succeeds 120s 1s Verify the Metric is Collected? log:display | grep "Connecting to HSQLDB" HSQLDB
25 Verify Feature Is Installed odl-tsdr-hsqldb
26 Verify Feature Is Installed odl-tsdr-core
27 Verify Feature Is Installed odl-tsdr-openflow-statistics-collector
29 Verification TSDR Command exists in Help
30 [Documentation] Verify the TSDR List command on Help
31 ${output}= Issue Command On Karaf Console tsdr\t
32 Should Contain ${output} tsdr:list
33 ${output}= Issue Command On Karaf Console tsdr:list\t\t
34 : FOR ${list} IN @{CATEGORY}
35 \ Should Contain ${output} ${list}
36 Wait Until Keyword Succeeds 60s 1s Verify the Metric is Collected? ${TSDR_PORTSTATS} openflow
38 Verify PortStats On Karaf console
39 [Documentation] Verify the InterfaceMetrics(PortStats),attributes using ${TSDR_PORTSTATS}
40 : FOR ${list} IN @{INTERFACE_METRICS}
41 \ ${tsdr_cmd}= Concatenate the String ${TSDR_PORTSTATS} | grep ${list} | head
42 \ ${output}= Issue Command On Karaf Console ${tsdr_cmd} ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 30
43 \ Should Contain ${output} ${list}