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