summaryrefslogtreecommitdiffstats
path: root/testcases/Controllers/ODL/custom_tests/neutron/001__reachability.robot
blob: d5ec842eeb162b9d3ff5392c42edb43885c6eef3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
*** Variables ***
${NeutronNorthbound}    /controller/nb/v2/neutron
${NetworkNorthbound}    ${NeutronNorthbound}/networks
${SubnetNorthbound}     ${NeutronNorthbound}/subnets
${PortNorthbound}       ${NeutronNorthbound}/ports

*** Settings ***
Suite Setup       Create Session    ODL    http://${CONTROLLER}:${PORT}    headers=${HEADERS}    auth=${AUTH}
Suite Teardown    Delete All Sessions
Library           RequestsLibrary
Variables         ../../../variables/Variables.py

*** Test Cases ***
Get the complete list of networks
    [Tags]    reachability
    ${resp}   get request    ODL    ${NetworkNorthbound}
    Should be Equal As Strings    ${resp.status_code}    200

Get the complete list of subnets
    [Tags]    reachability
    ${resp}   get request    ODL    ${SubnetNorthbound}
    Should be Equal As Strings    ${resp.status_code}    200

Get the complete list of ports
    [Tags]    reachability
    ${resp}   get request    ODL    ${PortNorthbound}
    Should be Equal As Strings    ${resp.status_code}    200