Cleaning the ovsdb node completely for other test 44/23544/2
authorChaudhry Muhammad Usama <chaudhryusama@gmail.com>
Tue, 23 Jun 2015 17:48:39 +0000 (10:48 -0700)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 29 Jun 2015 22:52:44 +0000 (22:52 +0000)
Change-Id: I5dacf7c50bc048e58417fa60b0a9e4cb447cbf9c
Signed-off-by: Chaudhry Muhammad Usama <chaudhryusama@gmail.com>
(cherry picked from commit 80149c003fcb84843a077466a7c01478cfbb60a2)

test/csit/suites/ovsdb/Southbound_Domain/010__configure_1_ovsdb_node.robot
test/csit/suites/ovsdb/Southbound_Domain/020__connection_manager.robot

index 05cbe1379b5e18029beaed75453b5daa24632ec2..0eb81ad54be286f72599aa1f4bba210e6ce8c2b5 100644 (file)
@@ -148,6 +148,31 @@ Get Config Topology after reconnect
     Should Be Equal As Strings    ${resp.status_code}    200    Response    status code error
     Should Contain    ${resp.content}    br-int
 
+Create integration Bridge
+    [Documentation]    This will create bridge on the specified OVSDB node.
+    [Tags]    Southbound
+    ${sample}    OperatingSystem.Get File    ${OVSDB_CONFIG_DIR}/create_bridge.json
+    ${sample1}    Replace String    ${sample}    tcp:127.0.0.1:6633    tcp:${CONTROLLER}:6633
+    ${sample2}    Replace String    ${sample1}    127.0.0.1    ${MININET}
+    ${sample3}    Replace String    ${sample2}    br01    br-int
+    ${body}    Replace String    ${sample3}    61644    ${OVSDB_PORT}
+    Log    URL is ${SOUTHBOUND_CONFIG_API}%2Fbridge%2F${BRIDGE}
+    ${resp}    RequestsLibrary.Put    session    ${SOUTHBOUND_CONFIG_API}%2Fbridge%2Fbr-int    data=${body}
+    Log    ${resp.content}
+    Should Be Equal As Strings    ${resp.status_code}    200
+
+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
+
+Get Operational Topology after Deletion of integration Bridge
+    [Documentation]    This request will fetch the operational topology after the Bridge is deleted
+    [Tags]    Southbound
+    @{list}    Create List    br-int
+    Wait Until Keyword Succeeds    8s    2s    Check For Elements Not At URI    ${OPERATIONAL_TOPO_API}    ${list}
+
 Again Delete the OVSDB Node
     [Documentation]    This request will delete the OVSDB node
     [Tags]    Southbound
index 8faca3ff7898f3a20f3c2c7b837cbff0564678e2..31f7365a4294bb1aa139b42452a15d95767d695d 100644 (file)
@@ -10,7 +10,7 @@ Resource          ../../../libraries/Utils.txt
 
 *** Variables ***
 ${OVSDB_PORT}     6634
-${SOUTHBOUND_CONFIG_API}    ${CONFIG_TOPO_API}/topology/ovsdb:1/node/ovsdb:%2F%2F${MININET}:6634
+${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}    br-int
 
@@ -18,7 +18,6 @@ ${OVSDB_CONFIG_DIR}    ${CURDIR}/../../../variables/ovsdb
 Connecting an OVS instance to the controller
     [Tags]    Southbound
     Run Command On Remote System    ${MININET}    sudo ovs-vsctl del-manager
-    Run Command On Remote System    ${MININET}    sudo ovs-vsctl del-br br-int
     Run Command On Remote System    ${MININET}    sudo ovs-vsctl set-manager tcp:${CONTROLLER}:6640
 
 Get Operational Topology to verify the ovs instance is connected to the controller