Integration tests for GBP
[integration/test.git] / csit / suites / groupbasedpolicy / GBP / 3-node / gbp2-multitenant / 998_clean_odl.robot
diff --git a/csit/suites/groupbasedpolicy/GBP/3-node/gbp2-multitenant/998_clean_odl.robot b/csit/suites/groupbasedpolicy/GBP/3-node/gbp2-multitenant/998_clean_odl.robot
new file mode 100644 (file)
index 0000000..bbd7dba
--- /dev/null
@@ -0,0 +1,30 @@
+*** Settings ***
+Documentation     Test suite for cleaning up / unregister infrastructure constructs like endpoints for demo-asymmetric-chain
+Default Tags      multi-tenant    teardown    multi-tenant-teardown
+Suite Setup       Create Session    session    http://${CONTROLLER}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS}
+Suite Teardown    Delete All Sessions
+Library           RequestsLibrary
+Library           OperatingSystem
+Library           json
+Variables         ../../../../../variables/Variables.py
+Resource          ../../../../../libraries/Utils.robot
+Resource          ../../../../../libraries/GBP/RestconfUtils.robot
+Resource          ../Variables.robot
+
+
+*** Variables ***
+
+*** Test Cases ***
+
+Delete Tenants
+    [Documentation]    Delete Tenants from ODL
+    Remove All Elements At URI    ${TENANT1_PATH}
+    Remove All Elements At URI    ${TENANT2_PATH}
+
+Unregister Endpoints
+    [Documentation]    Unregister Endpoints Endpoints from ODL
+    RestconfUtils.Unregister Endpoints
+
+Delete Nodes
+    [Documentation]    Delete Nodes from ODL
+    Remove All Elements At URI    ${TUNNELS_PATH}