e9fdfe645d595dd833e93903ec97531c9fcf78e2
[functest.git] / testcases / Controllers / ODL / custom_tests / neutron / 001__reachability.robot
1 *** Variables ***
2 ${NeutronNorthbound}    /controller/nb/v2/neutron
3 ${NetworkNorthbound}    ${NeutronNorthbound}/networks
4 ${SubnetNorthbound}     ${NeutronNorthbound}/subnets
5 ${PortNorthbound}       ${NeutronNorthbound}/ports
6
7 *** Settings ***
8 Suite Setup       Create Session    ODL    http://${CONTROLLER}:${PORT}    headers=${HEADERS}    auth=${AUTH}
9 Suite Teardown    Delete All Sessions
10 Library           RequestsLibrary
11 Variables         ../../../variables/Variables.py
12
13 *** Test Cases ***
14 Get the complete list of networks
15     [Documentation]    Get the complete list of networks
16     [Tags]    reachability
17     ${resp}   get request    ODL    ${NetworkNorthbound}
18     Should be Equal As Strings    ${resp.status_code}    200
19
20 Get the complete list of subnets
21     [Documentation]    Get the complete list of subnets
22     [Tags]    reachability
23     ${resp}   get request    ODL    ${SubnetNorthbound}
24     Should be Equal As Strings    ${resp.status_code}    200
25
26 Get the complete list of ports
27     [Documentation]    Get the complete list of ports
28     [Tags]    reachability
29     ${resp}   get request    ODL    ${PortNorthbound}
30     Should be Equal As Strings    ${resp.status_code}    200