Merge "removing failing tests"
[integration/test.git] / test / csit / suites / karaf-compatible / 300_Switch_Qualification / 010_OpenFlow_Connection.txt
1 *** Settings ***
2 Documentation     TODO
3 Suite Setup       Switch Qualification Suite Setup
4 Suite Teardown    Switch Qualification Suite Teardown
5 Test Timeout      5m
6 Library           Collections
7 Library           OperatingSystem
8 Resource          ../../../libraries/SwitchUtils.txt
9 Resource          ../../../libraries/Utils.txt
10 Library           ../../../libraries/RequestsLibrary.py
11 Library           ../../../libraries/Common.py
12 Library           ../../../libraries/SwitchClasses/${SWITCH_CLASS}.py
13 Variables         ../../../variables/Variables.py
14
15 *** Variables ***
16 ${SWITCH_CLASS}    Ovs
17 ${SWITCH_IP}      ${MININET}
18 ${CONTROLLER}     null
19 ${REST_CONTEXT}    /restconf/operational/opendaylight-inventory:nodes
20
21 *** Test Cases ***
22 OF1.3 Connection Between Switch and Controller
23     [Tags]    switch_qualification
24     Configure OpenFlow    ${test_switch}
25     Enable OpenFlow    ${test_switch}
26     ${datapath_id_from_switch}=    Get Switch Datapath ID    ${test_switch}
27     Verify Switch In Operational Data Store    ${test_switch}
28     Disable OpenFlow    ${test_switch}
29     Verify Switch Not In Operational Data Store    ${test_switch}
30     ##MORE CHECKS TO ADD ON SWITCH AND OPERATIONAL DATA STORE
31     ##- proper OF version
32     ##- proper default flow rules
33     ##- ???
34
35 *** Keywords ***
36 Switch Qualification Suite Setup
37     ${test_switch}=    Get Switch    ${SWITCH_CLASS}
38     Set Suite Variable    ${test_switch}
39     Call Method    ${test_switch}    set_mgmt_ip    ${SWITCH_IP}
40     Call Method    ${test_switch}    set_controller_ip    ${CONTROLLER}
41     Log    MAKE: ${test_switch.make}\n MODEL: ${test_switch.model}\n IP: ${test_switch.mgmt_ip}\n PROMPT: ${test_switch.mgmt_prompt}\n CONTROLLER_IP: ${test_switch.of_controller_ip}\n MGMT_PROTOCOL: ${test_switch.mgmt_protocol}
42     Ping    ${test_switch.mgmt_ip}
43     Initialize Switch    ${test_switch}
44     Create Session    session    http://${CONTROLLER}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS_XML}
45
46 Switch Qualification Suite Teardown
47     Cleanup Switch    ${test_switch}
48     SSHLibrary.Close All Connections
49     Telnet.Close All Connections