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/CompareStream.robot
10 Resource ../../../libraries/KarafKeywords.robot
11 Resource ../../../libraries/TsdrUtils.robot
12 Variables ../../../variables/Variables.py
15 @{INTERFACE_METRICS} TransmittedPackets TransmittedBytes TransmitErrors TransmitDrops ReceivedPackets ReceivedBytes ReceiveOverRunError
16 ... ReceiveFrameError ReceiveErrors ReceiveDrops ReceiveCrcError CollisionCount
20 [Documentation] Initialize ODL version specific variables
23 Verification of TSDR HSQLDB Feature Installation
24 [Documentation] Install and Verify the TSDR HSQLDB Datastore and JDBC
25 COMMENT Install a Feature odl-tsdr-hsqldb ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 60
26 COMMENT Install a Feature odl-tsdr-openflow-statistics-collector ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 60
27 Verify Feature Is Installed ${HSQLDB_INSTALL}
28 Verify Feature Is Installed odl-tsdr-core
30 Verification TSDR Command exists in Help
31 [Documentation] Verify the TSDR List command on Help
32 ${output}= Issue Command On Karaf Console tsdr\t
33 Should Contain ${output} tsdr:list
34 ${output}= Issue Command On Karaf Console tsdr:list\t\t
35 : FOR ${list} IN @{CATEGORY}
36 \ Should Contain ${output} ${list}
37 Wait Until Keyword Succeeds 60s 1s Verify the Metric is Collected? ${TSDR_PORTSTATS} openflow
39 Verify PortStats On Karaf console
40 [Documentation] Verify the InterfaceMetrics(PortStats),attributes using ${TSDR_PORTSTATS}
41 : FOR ${list} IN @{INTERFACE_METRICS}
42 \ ${tsdr_cmd}= Concatenate the String ${TSDR_PORTSTATS} | grep ${list} | head
43 \ ${output}= Issue Command On Karaf Console ${tsdr_cmd} ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 30
44 \ Should Contain ${output} ${list}
48 [Documentation] Sets variables specific to latest(master) version
49 Set Suite Variable @{CATEGORY} FLOWGROUPSTATS FLOWMETERSTATS FLOWSTATS FLOWTABLESTATS PORTSTATS
51 Set Suite Variable ${TSDR_PORTSTATS} tsdr:list PORTSTATS
52 Set Suite Variable ${HSQLDB_INSTALL} odl-tsdr-hsqldb