OVSDB Southbound TestSuites Updated
[integration/test.git] / test / csit / suites / ovsdb / Southbound_Domain / 010__connection_manager.robot
index 68f2d749da0015b8e5b6db160ac18e6a087b846c..9a651b266d863a91af3de4607bd369a061de1739 100644 (file)
@@ -11,14 +11,19 @@ Resource          ../../../libraries/Utils.txt
 *** Variables ***
 ${OVSDB_PORT}     6644
 ${SOUTHBOUND_CONFIG_API}    ${CONFIG_TOPO_API}/topology/ovsdb:1/node/ovsdb:%2F%2F${MININET}:${OVSDB_PORT}
-${FILE}           ${CURDIR}/../../../variables/ovsdb
+${OVSDB_CONFIG_DIR}    ${CURDIR}/../../../variables/ovsdb
 @{node_list}      ovsdb://${MININET}:${OVSDB_PORT}    ${MININET}    ${OVSDB_PORT}
 
 *** Test Cases ***
+Make the OVS instacne to listen for connection
+    [Tags]    Southbound
+    Run Command On Remote System    ${MININET}    sudo ovs-vsctl del-manager
+    Run Command On Remote System    ${MININET}    sudo ovs-vsctl set-manager ptcp:6644
+
 Connect to OVSDB Node
     [Documentation]    Initiate the connection to OVSDB node from controller
     [Tags]    Southbound
-    ${sample}    OperatingSystem.Get File    ${FILE}/connect.json
+    ${sample}    OperatingSystem.Get File    ${OVSDB_CONFIG_DIR}/connect.json
     ${sample1}    Replace String    ${sample}    127.0.0.1    ${MININET}
     ${body}    Replace String    ${sample1}    61644    ${OVSDB_PORT}
     Log    URL is ${SOUTHBOUND_CONFIG_API}
@@ -37,7 +42,7 @@ Get Config Topology
 Get Operational Topology
     [Documentation]    This request will fetch the operational topology from the connected OVSDB nodes
     [Tags]    Southbound
-    Wait Until Keyword Succeeds    6s    2s    Check For Elements At URI    ${OPERATIONAL_TOPO_API}    ${node_list}
+    Wait Until Keyword Succeeds    8s    2s    Check For Elements At URI    ${OPERATIONAL_TOPO_API}    ${node_list}
 
 Delete the OVSDB Node
     [Documentation]    This request will delete the OVSDB node
@@ -48,4 +53,4 @@ Delete the OVSDB Node
 Get Operational Topology after Deletion
     [Documentation]    This request will fetch the operational topology after the OVSDB node is deleted
     [Tags]    Southbound
-    Wait Until Keyword Succeeds    6s    2s    Check For Elements Not At URI    ${OPERATIONAL_TOPO_API}    ${node_list}
+    Wait Until Keyword Succeeds    8s    2s    Check For Elements Not At URI    ${OPERATIONAL_TOPO_API}    ${node_list}