X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Ftsdr%2FHSQLDB%2F010_InterfaceMetrics.robot;h=a53a4d1dc966b3209febc2e25a13f52007f23299;hb=94651ca9711d8eb316721775561e815830bc6c7e;hp=2c21fa9c2bbe5b393f58407dea3c30b3768a2b08;hpb=f9d5d70fb7a288fc901eab04519d5b5246c56be6;p=integration%2Ftest.git diff --git a/csit/suites/tsdr/HSQLDB/010_InterfaceMetrics.robot b/csit/suites/tsdr/HSQLDB/010_InterfaceMetrics.robot index 2c21fa9c2b..a53a4d1dc9 100644 --- a/csit/suites/tsdr/HSQLDB/010_InterfaceMetrics.robot +++ b/csit/suites/tsdr/HSQLDB/010_InterfaceMetrics.robot @@ -6,6 +6,7 @@ Library SSHLibrary Library Collections Library String Library ../../../libraries/Common.py +Resource ../../../libraries/CompareStream.robot Resource ../../../libraries/KarafKeywords.robot Resource ../../../libraries/TsdrUtils.robot Variables ../../../variables/Variables.py @@ -17,9 +18,7 @@ Variables ../../../variables/Variables.py *** Test Cases *** Init Variables [Documentation] Initialize ODL version specific variables - log ${ODL_VERSION} - Run Keyword If '${ODL_VERSION}' == 'stable-lithium' Init Variables Lithium - ... ELSE Init Variables Master + Init Variables Master Verification of TSDR HSQLDB Feature Installation [Documentation] Install and Verify the TSDR HSQLDB Datastore and JDBC @@ -33,26 +32,23 @@ Verification TSDR Command exists in Help ${output}= Issue Command On Karaf Console tsdr\t Should Contain ${output} tsdr:list ${output}= Issue Command On Karaf Console tsdr:list\t\t - : FOR ${list} IN @{CATEGORY} - \ Should Contain ${output} ${list} + FOR ${list} IN @{CATEGORY} + Should Contain ${output} ${list} + END Wait Until Keyword Succeeds 60s 1s Verify the Metric is Collected? ${TSDR_PORTSTATS} openflow Verify PortStats On Karaf console [Documentation] Verify the InterfaceMetrics(PortStats),attributes using ${TSDR_PORTSTATS} - : FOR ${list} IN @{INTERFACE_METRICS} - \ ${tsdr_cmd}= Concatenate the String ${TSDR_PORTSTATS} | grep ${list} | head - \ ${output}= Issue Command On Karaf Console ${tsdr_cmd} ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 30 - \ Should Contain ${output} ${list} + FOR ${list} IN @{INTERFACE_METRICS} + ${tsdr_cmd}= Concatenate the String ${TSDR_PORTSTATS} | grep ${list} | head + ${output}= Issue Command On Karaf Console ${tsdr_cmd} ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 30 + Should Contain ${output} ${list} + END *** Keywords *** Init Variables Master [Documentation] Sets variables specific to latest(master) version - Set Suite Variable @{CATEGORY} FLOWGROUPSTATS FLOWMETERSTATS FLOWSTATS FLOWTABLESTATS PORTSTATS QUEUESTATS + Set Suite Variable @{CATEGORY} FLOWGROUPSTATS FLOWMETERSTATS FLOWSTATS FLOWTABLESTATS PORTSTATS + ... QUEUESTATS Set Suite Variable ${TSDR_PORTSTATS} tsdr:list PORTSTATS Set Suite Variable ${HSQLDB_INSTALL} odl-tsdr-hsqldb - -Init Variables Lithium - [Documentation] Sets variables specific to Lithium version - Set Suite Variable @{CATEGORY} FlowStats FlowTableStats PortStats QueueStats - Set Suite Variable ${TSDR_PORTSTATS} tsdr:list PortStats - Set Suite Variable ${HSQLDB_INSTALL} odl-tsdr-HSQLDB