2 Documentation Test suite for HSQLDB DataStore InterfaceMetrics Verification
7 Library ../../../libraries/Common.py
8 Resource ../../../libraries/CompareStream.robot
9 Resource ../../../libraries/KarafKeywords.robot
10 Resource ../../../libraries/TsdrUtils.robot
11 Variables ../../../variables/Variables.py
13 Suite Setup Start Tsdr Suite
14 Suite Teardown Stop Tsdr Suite
19 ... TransmittedPackets
25 ... ReceiveOverRunError
35 [Documentation] Initialize ODL version specific variables
38 Verification of TSDR HSQLDB Feature Installation
39 [Documentation] Install and Verify the TSDR HSQLDB Datastore and JDBC
40 COMMENT Install a Feature odl-tsdr-hsqldb ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 60
43 ... odl-tsdr-openflow-statistics-collector
45 ... ${KARAF_SHELL_PORT}
47 Verify Feature Is Installed ${HSQLDB_INSTALL}
48 Verify Feature Is Installed odl-tsdr-core
50 Verification TSDR Command exists in Help
51 [Documentation] Verify the TSDR List command on Help
52 ${output}= Issue Command On Karaf Console tsdr\t
53 Should Contain ${output} tsdr:list
54 ${output}= Issue Command On Karaf Console tsdr:list\t\t
55 FOR ${list} IN @{CATEGORY}
56 Should Contain ${output} ${list}
58 Wait Until Keyword Succeeds 60s 1s Verify the Metric is Collected? ${TSDR_PORTSTATS} openflow
60 Verify PortStats On Karaf console
61 [Documentation] Verify the InterfaceMetrics(PortStats),attributes using ${TSDR_PORTSTATS}
62 FOR ${list} IN @{INTERFACE_METRICS}
63 ${tsdr_cmd}= Concatenate the String ${TSDR_PORTSTATS} | grep ${list} | head
64 ${output}= Issue Command On Karaf Console ${tsdr_cmd} ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 30
65 Should Contain ${output} ${list}
71 [Documentation] Sets variables specific to latest(master) version
72 Set Suite Variable @{CATEGORY} FLOWGROUPSTATS FLOWMETERSTATS FLOWSTATS FLOWTABLESTATS PORTSTATS
74 Set Suite Variable ${TSDR_PORTSTATS} tsdr:list PORTSTATS
75 Set Suite Variable ${HSQLDB_INSTALL} odl-tsdr-hsqldb