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