Basic tests - Unification Scripting Node
[integration/test.git] / csit / suites / groupbasedpolicy / GBPSFC / 6-node / demo-symmetric-chain / 998_clean_odl.robot
1 *** Settings ***
2 Documentation     Test suite for cleaning up / unregister infrastructure constructs like endpoints for demo-symmetric-chain
3 Suite Setup       Create Session    session    http://${CONTROLLER}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS}
4 Suite Teardown    Delete All Sessions
5 Library           RequestsLibrary
6 Library           OperatingSystem
7 Library           Collections
8 Library           json
9 Variables         ../../../../../variables/Variables.py
10 Resource          ../../../../../libraries/Utils.robot
11 Resource          ../../../../../libraries/GBP/RestconfUtils.robot
12
13 *** Variables ***
14 ${GBP_TENENT_ID}    f5c7d344-d1c7-4208-8531-2c2693657e12
15 ${TENANT_PATH}    /restconf/config/policy:tenants/tenant/${GBP_TENENT_ID}
16 ${TUNNELS_PATH}    /restconf/config/opendaylight-inventory:nodes
17 ${OPER_ENDPOINTS_PATH}    /restconf/operational/endpoint:endpoints
18 ${UNREG_ENDPOINTS_PATH}    /restconf/operations/endpoint:unregister-endpoint
19 ${SF_PATH}        /restconf/config/service-function:service-functions
20 ${SFF_PATH}       /restconf/config/service-function-forwarder:service-function-forwarders
21 ${SFC_PATH}       /restconf/config/service-function-chain:service-function-chains
22 ${SFP_PATH}       /restconf/config/service-function-path:service-function-paths
23 ${OPER_NODES}     /restconf/operational/opendaylight-inventory:nodes/
24
25 *** Test Cases ***
26 Delete Service Function Paths
27     [Documentation]    Delete Service Function Paths from ODL
28     [Tags]    GBPSFCTEAR
29     Remove All Elements At URI And Verify    ${SFP_PATH}
30
31 Delete Service Function Chains
32     [Documentation]    Delete Service Function Chains from ODL
33     [Tags]    GBPSFCTEAR
34     Remove All Elements At URI And Verify    ${SFC_PATH}
35
36 Delete Service Functions
37     [Documentation]    Delete Service Function from ODL
38     [Tags]    GBPSFCTEAR
39     Remove All Elements At URI And Verify    ${SF_PATH}
40
41 Delete Service Function Forwarders
42     [Documentation]    Delete Service Function Forwarders from ODL
43     [Tags]    GBPSFCTEAR
44     Remove All Elements At URI And Verify    ${SFF_PATH}
45
46 Delete Tunnels
47     [Documentation]    Delete Tenant from ODL
48     [Tags]    GBPSFCTEAR
49     Remove All Elements At URI And Verify    ${TUNNELS_PATH}
50
51 Delete Tenant
52     [Documentation]    Delete Tenant from ODL
53     [Tags]    GBPSFCTEAR
54     Remove All Elements At URI And Verify    ${TENANT_PATH}
55
56 Unregister Endpoints
57     [Documentation]    Unregister Endpoints Endpoints from ODL
58     [Tags]    GBPSFCTEAR
59     Unregister Endpoints    ${OPER_ENDPOINTS_PATH}