Update Robot Framework format - step 7
[integration/test.git] / csit / suites / groupbasedpolicy / GBPSFC / 6-node / demo-asymmetric-chain / 998_clean_odl.robot
1 *** Settings ***
2 Documentation       Test suite for cleaning up / unregister infrastructure constructs like endpoints for demo-asymmetric-chain
3
4 Library             RequestsLibrary
5 Library             OperatingSystem
6 Library             Collections
7 Library             json
8 Variables           ../../../../../variables/Variables.py
9 Resource            ../../../../../libraries/Utils.robot
10 Resource            ../../../../../libraries/GBP/RestconfUtils.robot
11 Resource            ../Variables.robot
12
13 Suite Setup         Create Session    session    http://${ODL_SYSTEM_IP}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS}
14 Suite Teardown      Delete All Sessions
15
16
17 *** Test Cases ***
18 Delete Service Function Paths
19     [Documentation]    Delete Service Function Paths from ODL
20     [Tags]    gbpsfctear
21     Remove All Elements At URI And Verify    ${SFP_PATH}
22
23 Delete Service Function Chains
24     [Documentation]    Delete Service Function Chains from ODL
25     [Tags]    gbpsfctear
26     Remove All Elements At URI And Verify    ${SFC_PATH}
27
28 Delete Service Functions
29     [Documentation]    Delete Service Function from ODL
30     [Tags]    gbpsfctear
31     Remove All Elements At URI And Verify    ${SF_PATH}
32
33 Delete Service Function Forwarders
34     [Documentation]    Delete Service Function Forwarders from ODL
35     [Tags]    gbpsfctear
36     Remove All Elements At URI And Verify    ${SFF_PATH}
37
38 Delete Tunnels
39     [Documentation]    Delete Tunnels from ODL
40     [Tags]    gbpsfctear
41     Remove All Elements At URI And Verify    ${TUNNELS_PATH}
42
43 Delete Tenant
44     [Documentation]    Delete Tenant from ODL
45     [Tags]    gbpsfctear
46     Remove All Elements At URI And Verify    ${TENANT_PATH}
47
48 Unregister Endpoints
49     [Documentation]    Unregister Endpoints Endpoints from ODL
50     [Tags]    gbpsfctear
51     RestconfUtils.Unregister Endpoints
52
53 Delete OVSDB Topology If Present
54     [Documentation]    Delete OVSDB topology from ODL
55     [Tags]    gbpsfctear
56     ${resp}    RequestsLibrary.Get Request    session    ${TOPOLOGY_PATH}
57     IF    ${resp.status_code} == 200
58         Remove All Elements At URI And Verify    ${TOPOLOGY_PATH}
59     END