Using WUKS for initial node disco to avoid timing issue
[integration/test.git] / test / csit / suites / openflowplugin / Groups_Meters_OF13 / 005__openflow_group.robot
index 73a519eab0db6e0c5e0c3c4ee4cfbf17ae75e1f3..188c2b8aca13cac97865e84d96dd049da80223e9 100644 (file)
@@ -22,10 +22,8 @@ ${FLOW_NAME}      forward
 *** Test Cases ***
 Get list of nodes
     [Documentation]    Get the inventory to make sure openflow:1 comes up
-    ${resp}    RequestsLibrary.Get    session    ${REST_CONTEXT}
-    Log    ${resp.content}
-    Should Be Equal As Strings    ${resp.status_code}    200
-    Should Contain    ${resp.content}    openflow:1
+    ${node_list}=    Create List    openflow:1
+    Wait Until Keyword Succeeds    3s    1s    Check For Elements At URI    ${REST_CONTEXT_OP}    ${node_list}
 
 Add a group
     [Documentation]    Add a group using RESTCONF
@@ -46,7 +44,7 @@ Verify after adding group config
 Verify after adding group operational
     [Documentation]    Get the group stat in operational
     ${elements}=    Create List    group-statistics    group-desc
-    Wait Until Keyword Succeeds    60s    2s    Check For Elements At URI    ${REST_CONTEXT_OP}/group/1    ${elements}
+    Wait Until Keyword Succeeds    6s    2s    Check For Elements At URI    ${REST_CONTEXT_OP}/group/1    ${elements}
 
 Add a flow that includes a group
     [Documentation]    Push a flow through RESTCONF
@@ -68,7 +66,7 @@ Verify after adding flow config
 Verify after adding flow operational
     [Documentation]    Verify the flow
     ${elements}=    Create List    group-action    group-id
-    Wait Until Keyword Succeeds    60s    2s    Check For Elements At URI    ${REST_CONTEXT_OP}/table/0/flow/1    ${elements}
+    Wait Until Keyword Succeeds    6s    2s    Check For Elements At URI    ${REST_CONTEXT_OP}/table/0/flow/1    ${elements}
 
 Remove the flow
     [Documentation]    Remove the flow