Test cases for GBP-SFC integration demo
[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 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 Resource          ../Variables.robot
13
14 *** Test Cases ***
15
16 Delete Service Function Paths
17     [Documentation]    Delete Service Function Paths from ODL
18     [Tags]    GBPSFCTEAR
19     Remove All Elements At URI And Verify    ${SFP_PATH}
20
21
22 Delete Service Function Chains
23     [Documentation]    Delete Service Function Chains from ODL
24     [Tags]    GBPSFCTEAR
25     Remove All Elements At URI And Verify    ${SFC_PATH}
26
27 Delete Service Functions
28     [Documentation]    Delete Service Function from ODL
29     [Tags]    GBPSFCTEAR
30     Remove All Elements At URI And Verify    ${SF_PATH}
31
32 Delete Service Function Forwarders
33     [Documentation]    Delete Service Function Forwarders from ODL
34     [Tags]    GBPSFCTEAR
35     Remove All Elements At URI And Verify    ${SFF_PATH}
36
37 Delete Tunnels
38     [Documentation]    Delete Tunnels from ODL
39     [Tags]    GBPSFCTEAR
40     Remove All Elements At URI And Verify    ${TUNNELS_PATH}
41
42 Delete Tenant
43     [Documentation]    Delete Tenant from ODL
44     [Tags]    GBPSFCTEAR
45     Remove All Elements At URI And Verify    ${TENANT_PATH}
46
47 Unregister Endpoints
48     [Documentation]    Unregister Endpoints Endpoints from ODL
49     [Tags]    GBPSFCTEAR
50     RestconfUtils.Unregister Endpoints
51
52 Delete OVSDB Topology If Present
53     [Documentation]    Delete OVSDB topology from ODL
54     [Tags]    GBPSFCTEAR
55     ${resp}    RequestsLibrary.Get    session    ${TOPOLOGY_PATH}
56     Run Keyword If    ${resp.status_code} == 200
57     ...    Remove All Elements At URI And Verify    ${TOPOLOGY_PATH}