Patch to solve the failure Issue of 2 robot tests
[integration/test.git] / test / csit / suites / ovsdb / Southbound_Domain / 020__configure_1_ovsdb_node.robot
index addc98027911b6a7475174ad744b98317eaba998..82b7527565b460aadf7475f5cf96bde4793996be 100644 (file)
@@ -13,6 +13,7 @@ ${OVSDB_PORT}     6644
 ${BRIDGE}         br01
 ${SOUTHBOUND_CONFIG_API}    ${CONFIG_TOPO_API}/topology/ovsdb:1/node/ovsdb:%2F%2F${MININET}:${OVSDB_PORT}
 ${OVSDB_CONFIG_DIR}    ${CURDIR}/../../../variables/ovsdb
+@{node_list}      ovsdb://${MININET}:${OVSDB_PORT}    ${MININET}    ${OVSDB_PORT}    true    br-int
 
 *** Test Cases ***
 Make the OVS instacne to listen for connection
@@ -31,6 +32,11 @@ Connect to OVSDB Node
     Log    ${resp.content}
     Should Be Equal As Strings    ${resp.status_code}    200
 
+Get Operational Topology
+    [Documentation]    This request will fetch the operational topology from the connected OVSDB nodes
+    [Tags]    Southbound
+    Wait Until Keyword Succeeds    8s    2s    Check For Elements At URI    ${OPERATIONAL_TOPO_API}    ${node_list}
+
 Create a Bridge
     [Documentation]    This will create bridge on the specified OVSDB node.
     [Tags]    Southbound
@@ -97,6 +103,12 @@ Get Operational Topology after Deletion of Bridge
     @{list}    Create List    ${BRIDGE}    vxlanport
     Wait Until Keyword Succeeds    8s    2s    Check For Elements Not At URI    ${OPERATIONAL_TOPO_API}    ${list}
 
+Delete the integration Bridge
+    [Documentation]    This request will delete the bridge node from the config data store.
+    [Tags]    Southbound
+    ${resp}    RequestsLibrary.Delete    session    ${SOUTHBOUND_CONFIG_API}%2Fbridge%2Fbr-int
+    Should Be Equal As Strings    ${resp.status_code}    200    Response    status code error
+
 Delete the OVSDB Node
     [Documentation]    This request will delete the OVSDB node
     [Tags]    Southbound