2 Documentation Test suite for H2 DataStore InterfaceMetrics Verification
7 Library ../../../libraries/Common.py
8 Resource ../../../libraries/KarafKeywords.robot
9 Resource ../../../libraries/TsdrUtils.robot
10 Variables ../../../variables/Variables.py
12 Suite Setup Start Tsdr Suite
13 Suite Teardown Stop Tsdr Suite
18 ... TransmittedPackets
24 ... ReceiveOverRunError
30 @{CATEGORY} FlowGroupStats FlowMeterStats FlowStats FlowTableStats PortStats QueueStats
31 ${TSDR_PORTSTATS} tsdr:list PortStats
35 Verification of TSDR H2 Feature Installation
36 [Documentation] Install and Verify the TSDR H2 Datastore and JDBC
37 Install a Feature jdbc ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 60
38 Verify Feature Is Installed jdbc
39 COMMENT Install a Feature odl-tsdr-all ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 60
40 Verify Feature Is Installed odl-tsdr-all
41 Verify Feature Is Installed odl-tsdr-H2-persistence
42 Verify Feature Is Installed odl-tsdr-core
43 Wait Until Keyword Succeeds
46 ... Verify the Metric is Collected?
47 ... log:display | grep "TSDR H2"
50 Verification TSDR Command is exist 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 Should Contain ${output} tsdr:purgeall
55 ${output}= Issue Command On Karaf Console tsdr:list\t\t
56 FOR ${list} IN @{CATEGORY}
57 Should Contain ${output} ${list}
59 Wait Until Keyword Succeeds 60s 1s Verify the Metric is Collected? ${TSDR_PORTSTATS} openflow
61 Verify PortStats On Karaf console
62 [Documentation] Verify the InterfaceMetrics(PortStats),attributes using ${TSDR_PORTSTATS}
63 FOR ${list} IN @{INTERFACE_METRICS}
64 ${tsdr_cmd}= Concatenate the String ${TSDR_PORTSTATS} | grep ${list} | head
65 ${output}= Issue Command On Karaf Console ${tsdr_cmd} ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 30
66 Should Contain ${output} ${list}
69 Verify PortStats-Attributes on H2 Datastore using JDBC Client
70 [Documentation] Verify the PortStats,attributes on H2 Datastore using JDBC Client
71 FOR ${list} IN @{INTERFACE_METRICS}
72 ${output}= Query Metrics on H2 Datastore PORTSTATS ${list}
73 Should Contain ${output} ${list}