Added BUG ID for failed cases.
[integration/test.git] / csit / suites / tsdr / Cassandra / 010_InterfaceMetrics.robot
index 3ec12d8cd3b41db97411198384ddeb8b07ae5d40..2a24704276e5ba22d29ef9afb0f23b54c9295c12 100644 (file)
@@ -9,6 +9,7 @@ Library           ../../../libraries/Common.py
 Resource          ../../../libraries/KarafKeywords.robot
 Resource          ../../../libraries/TsdrUtils.robot
 Variables         ../../../variables/Variables.py
+Metadata          https://bugs.opendaylight.org/show_bug.cgi?id=5068    ${EMPTY}
 
 *** Variables ***
 @{INTERFACE_METRICS}    TransmittedPackets    TransmittedBytes    TransmitErrors    TransmitDrops    ReceivedPackets    ReceivedBytes    ReceiveOverRunError
@@ -34,11 +35,9 @@ Verification of TSDR Cassandra Feature Installation
     Verify Feature Is Installed    odl-tsdr-openflow-statistics-collector
     Start Tsdr Suite
     Ping All Hosts
-    Wait Until Keyword Succeeds    5x    30 sec    Check Metric path    24\\d+|25\\d+
     Wait Until Keyword Succeeds    5x    30 sec    Check Metric val     \\d{5}
 
 Storing Statistics from Openflow REST
-
     [Documentation]    Store openflow PortStats metrics using REST.
     : FOR    ${item}    IN    @{xpath}
     \    ${ret_val}=    Set Variable    -1
@@ -102,12 +101,9 @@ Verification of InterfaceMetrics-Attributes on Cassandra Client
     \    Append To List    ${tsdr_list}    ${ret_val1}
 
 Comparing Mertics
-
     [Documentation]    Compare openflow Interface metrics between data collected from openflow Plugin and TSDR
     : FOR    ${xml_val}    ${tsdr_val}    IN ZIP    ${xml_list}    ${tsdr_list}
-    \    Compare Tsdr XML Metrics    ${xml_val}    ${tsdr_val}
-
-
+    \    Compare Tsdr XML Metrics    ${xml_val}    ${tsdr_val}    20
 
 Verify Configuration Interval-change
     [Documentation]    Verify the TSDR Collection configuration changes
@@ -118,9 +114,9 @@ Verify Configuration Interval-change
     Post TSDR Configuration Interval    180
     Verify TSDR Configuration Interval    180
     Delete All Sessions
+    [Teardown]    Report_Failure_Due_To_Bug    5068
 
 *** Keywords ***
-
 Verify TSDR Configuration Interval
     [Arguments]    ${interval}
     [Documentation]    Verify Configuration interval of TSDR Collection
@@ -145,5 +141,3 @@ Extract From DB Table
     ${ret_val1}=    Verify the Metrics Attributes on Cassandra Client    ${pattern}
     [Return]    ${ret_val1}
 
-
-