Refactor flow service test
[integration/test.git] / csit / suites / openflowplugin / Flows_Additional_TCs / Stat_Manager_extended / 020_SM_sal_add_upd_del_flows.robot
index be6b1dc5b4ef2ac0dbc709102314353e9e46e412..6a39ae3ecf26e9e91b814ac5af5e1843ed8a10c6 100644 (file)
@@ -14,6 +14,7 @@ Library           RequestsLibrary
 Library           ../../../../libraries/Common.py
 
 *** Variables ***
+${flow_update_time}    3s
 ${XmlsDir}        ${CURDIR}/../../../../variables/xmls
 ${switch_idx}     1
 ${switch_name}    s${switch_idx}
@@ -36,7 +37,7 @@ Test Add Flows Group 0
     \    Run Keyword And Continue On Failure    Add Flow Via RPC    ${switch_idx}    ${xmlroot}
     # Lets wait for ofp to collect stats
     ${flows}=    Get Length    ${flowlist0}
-    Wait Until Keyword Succeeds    10s    2s    FlowLib.Check Flow Stats Are Available    openflow:1    ${flows}
+    Wait Until Keyword Succeeds    30s    2s    FlowLib.Check Flow Stats Are Available    openflow:1    ${flows}
     # Show switch content (for debug purposes if needed)
     Write    dpctl dump-flows -O OpenFlow13
     Read Until    mininet>
@@ -208,7 +209,7 @@ Test Update Flows Group 0
     \    Create Flow Variables For Suite From XML File    ${XmlsDir}/${flowfile}
     \    Run Keyword And Continue On Failure    Update Flow Via RPC    ${switch_idx}    ${data}    ${upddata}
     # Lets wait for ofp to collect stats
-    Sleep    3s
+    Sleep    ${flow_update_time}
     # Show switch content (for debug purposes if needed)
     Write    dpctl dump-flows -O OpenFlow13
     Read Until    mininet>
@@ -380,7 +381,7 @@ Test Delete Flows Group 0
     \    Create Flow Variables For Suite From XML File    ${XmlsDir}/${flowfile}
     \    Run Keyword And Continue On Failure    Delete Flow Via RPC    ${switch_idx}    ${xmlroot}
     # Lets wait for ofp to collect stats
-    Sleep    3s
+    Sleep    ${flow_update_time}
     # Show switch content (for debug purposes if needed)
     Write    dpctl dump-flows -O OpenFlow13
     Read Until    mininet>