bbd7dba370ea60b5802b03683a2eefea67d2f7f7
[integration/test.git] / csit / suites / groupbasedpolicy / GBP / 3-node / gbp2-multitenant / 998_clean_odl.robot
1 *** Settings ***
2 Documentation     Test suite for cleaning up / unregister infrastructure constructs like endpoints for demo-asymmetric-chain
3 Default Tags      multi-tenant    teardown    multi-tenant-teardown
4 Suite Setup       Create Session    session    http://${CONTROLLER}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS}
5 Suite Teardown    Delete All Sessions
6 Library           RequestsLibrary
7 Library           OperatingSystem
8 Library           json
9 Variables         ../../../../../variables/Variables.py
10 Resource          ../../../../../libraries/Utils.robot
11 Resource          ../../../../../libraries/GBP/RestconfUtils.robot
12 Resource          ../Variables.robot
13
14
15 *** Variables ***
16
17 *** Test Cases ***
18
19 Delete Tenants
20     [Documentation]    Delete Tenants from ODL
21     Remove All Elements At URI    ${TENANT1_PATH}
22     Remove All Elements At URI    ${TENANT2_PATH}
23
24 Unregister Endpoints
25     [Documentation]    Unregister Endpoints Endpoints from ODL
26     RestconfUtils.Unregister Endpoints
27
28 Delete Nodes
29     [Documentation]    Delete Nodes from ODL
30     Remove All Elements At URI    ${TUNNELS_PATH}