Add more time for CPqD switch in openflow suites
[integration/test.git] / csit / suites / openflowplugin / Flows_Additional_TCs / 020_Lithium_Rps_Calls_Cpqd.robot
index b2ac64fc71aa2dbadc54f10cd17d80cf16e4a090..91f00bb142cd0513cf8636e0128deb5a87f9dc6a 100644 (file)
@@ -10,12 +10,12 @@ Variables         ../../../variables/ofplugin/RpcVariables.py
 
 *** Variables ***
 ${send_update_table_url}    /restconf/operations/sal-table:update-table
-${start}          sudo mn --controller=remote,ip=${CONTROLLER} --topo tree,1 --switch user
+${start}          sudo mn --controller=remote,ip=${ODL_SYSTEM_IP} --topo tree,1 --switch user
 
 *** Test Cases ***
 Sending Update Table
     [Documentation]    Test to send table update request
-    ${resp}=    RequestsLibrary.Post    session    ${send_update_table_url}    data=${RPC_SEND_UPDATE_TABLE_DATA}    headers=${HEADERS_XML}
+    ${resp}=    RequestsLibrary.Post Request    session    ${send_update_table_url}    data=${RPC_SEND_UPDATE_TABLE_DATA}    headers=${HEADERS_XML}
     Log    ${resp.content}
     Should Be Equal As Strings    ${resp.status_code}    200
 
@@ -23,8 +23,8 @@ Sending Update Table
 Initialization Phase
     [Documentation]    Starts mininet and verify if topology is in operational ds
     Start Suite
-    Create Session    session    http://${CONTROLLER}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS_XML}
-    Wait Until Keyword Succeeds    10s    1s    Are Switches Connected Topo
+    Create Session    session    http://${ODL_SYSTEM_IP}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS_XML}
+    Wait Until Keyword Succeeds    40s    1s    Are Switches Connected Topo
 
 Final Phase
     [Documentation]    Stops mininet
@@ -33,7 +33,7 @@ Final Phase
 
 Are Switches Connected Topo
     [Documentation]    Checks wheather switches are connected to controller
-    ${resp}=    RequestsLibrary.Get    session    ${OPERATIONAL_TOPO_API}/topology/flow:1    headers=${ACCEPT_XML}
+    ${resp}=    RequestsLibrary.Get Request    session    ${OPERATIONAL_TOPO_API}/topology/flow:1    headers=${ACCEPT_XML}
     Log    ${resp.content}
     ${count}=    Get Element Count    ${resp.content}    xpath=node
     Should Be Equal As Numbers    ${count}    1