SXP-131: Robot reports negative periods of time
[integration/test.git] / csit / suites / sxp / performance / 020_BindingExportTests.robot
index 23c6c16ff17bdf2d8a1e7df635176f86747a6a00..2d35832e7ecaa5620fe9cd3b6cd505135635cf92 100644 (file)
@@ -1,7 +1,7 @@
 *** Settings ***
 Documentation     Test suite measuring binding export and forwarding speed.
 Test Setup        Setup SXP Environment
-Test Teardown     Clean SXP Environment
+Test Teardown     Clean Custom SXP Environment
 Library           ../../../libraries/Sxp.py
 Resource          ../../../libraries/SxpLib.robot
 Library           Remote    http://${ODL_SYSTEM_IP}:8270/ExportTestLibrary    WITH NAME    ExportLibrary
@@ -157,6 +157,7 @@ Simple Export
     \    ${ELEMENT}    Wait Until Keyword Succeeds    120    1    Check Bindings Exported
     \    Append To List    ${ITEMS}    ${ELEMENT}
     \    Test Clean
+    Log    ${ITEMS}
     ${export_speed}    Get Average Of Items    ${ITEMS}
     [Return]    ${export_speed}
 
@@ -167,28 +168,31 @@ Forwarding Export
     : FOR    ${num}    IN RANGE    0    ${samples}
     \    Setup Binding Export Topology    destination_domain=${destination_domain}
     \    ExportLibrary.Set Export Amount    ${check_amount}
-    \    ExportLibrary.Initiate Export    5.5.0.0/16    112
+    \    ExportLibrary.Initiate Export    132.5.0.0/16    112
     \    ${ELEMENT}    Wait Until Keyword Succeeds    360    1    Check Bindings Exported
     \    Append To List    ${ITEMS}    ${ELEMENT}
     \    Test Clean
+    Log    ${ITEMS}
     ${export_speed}    Get Average Of Items    ${ITEMS}
     [Return]    ${export_speed}
 
 Check Bindings Exported
     [Documentation]    Checking if bindings were exported and return export speed
     ${all_exported}    ExportLibrary.All Exported
+    Should Be True    ${all_exported}
     ${bindings_exported}    ExportLibrary.Get Bindings Exchange Count
     Log    ${bindings_exported}
-    Should Be True    ${all_exported}
     ${export_time}    ExportLibrary.Get Export Time
+    Log    ${export_time}
     ${export_speed}    Evaluate    ${bindings_exported}/${export_time}
+    Log    ${export_speed}
     [Return]    ${export_speed}
 
 Setup Filter
     [Arguments]    ${bits}    ${type}
     [Documentation]    Creates peer-group and its filter with specific matching.
     Add PeerGroup    GROUP    ${EMPTY}
-    ${entry}    Get Filter Entry    10    permit    pl=5.5.0.0/${bits}
+    ${entry}    Get Filter Entry    10    permit    pl=132.5.0.0/${bits}
     Add Filter    GROUP    ${type}    ${entry}
 
 Setup Domain Filter
@@ -196,7 +200,7 @@ Setup Domain Filter
     [Documentation]    Creates domain and its filter with specific matching.
     Add Domain    ${domain}
     ${domains}    Add Domains    ${domain}
-    ${entry}    Get Filter Entry    10    permit    pl=5.5.0.0/${bits}
+    ${entry}    Get Filter Entry    10    permit    pl=132.5.0.0/${bits}
     Add Domain Filter    ${DOMAIN_0}    ${domains}    ${entry}
 
 Test Clean
@@ -204,3 +208,8 @@ Test Clean
     Clean Connections
     Clean Connections    domain=${DOMAIN_1}
     Clean Peer Groups
+
+Clean Custom SXP Environment
+    [Documentation]    Cleans test resources
+    Test Clean
+    Clean SXP Environment