X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=testcases%2FControllers%2FODL%2Fcustom_tests%2Fneutron%2F020__subnets.robot;h=fa7c1e679787787aff5a44b3551668f4334e97d8;hb=refs%2Fchanges%2F53%2F16053%2F1;hp=5f5b82440f4c6e65e17113bd616795e95b4f095b;hpb=68d29b6f6e71df6b4f177cd417f98d9e977f8893;p=functest.git diff --git a/testcases/Controllers/ODL/custom_tests/neutron/020__subnets.robot b/testcases/Controllers/ODL/custom_tests/neutron/020__subnets.robot index 5f5b82440..fa7c1e679 100644 --- a/testcases/Controllers/ODL/custom_tests/neutron/020__subnets.robot +++ b/testcases/Controllers/ODL/custom_tests/neutron/020__subnets.robot @@ -1,12 +1,9 @@ *** Settings *** Documentation Checking Subnets created in OpenStack are pushed to OpenDaylight -Suite Setup Create Session OSSession http://${NEUTRON}:9696 headers=${X-AUTH} +Suite Setup Create Session OSSession http://${OPENSTACK}:9696 headers=${X-AUTH} Suite Teardown Delete All Sessions -Library SSHLibrary Library Collections -Library OperatingSystem Library RequestsLibrary -Library ../../../libraries/Common.py Variables ../../../variables/Variables.py *** Variables *** @@ -16,30 +13,28 @@ ${data} {"subnet":{"network_id":"${NETID}","ip_version":4,"cidr":"172. *** Test Cases *** Check OpenStack Subnets - [Documentation] Checking OpenStack Neutron for known Subnets + [Documentation] Checking OpenStack Neutron for known subnets [Tags] Subnets Neutron OpenStack Log ${X-AUTH} - ${resp} get OSSession ${OSREST} + ${resp} get request OSSession ${OSREST} Should be Equal As Strings ${resp.status_code} 200 ${OSResult} To Json ${resp.content} - Set Suite Variable ${OSResult} Log ${OSResult} Check OpenDaylight subnets - [Documentation] Checking OpenDaylight Neutron API for Known Subnets + [Documentation] Checking OpenDaylight Neutron API for known subnets [Tags] Subnets Neutron OpenDaylight - Create Session ODLSession http://${CONTROLLER}:${PORT} headers=${HEADERS} auth=${AUTH} - ${resp} get ODLSession ${ODLREST} + Create Session ODLSession http://${ODL_SYSTEM_IP}:${PORT} headers=${HEADERS} auth=${AUTH} + ${resp} get request ODLSession ${ODLREST} Should be Equal As Strings ${resp.status_code} 200 ${ODLResult} To Json ${resp.content} - Set Suite Variable ${ODLResult} Log ${ODLResult} Create New subnet [Documentation] Create new subnet in OpenStack [Tags] Create Subnet OpenStack Neutron Log ${data} - ${resp} post OSSession ${OSREST} data=${data} + ${resp} post request OSSession ${OSREST} data=${data} Should be Equal As Strings ${resp.status_code} 201 ${result} To JSON ${resp.content} ${result} Get From Dictionary ${result} subnet @@ -52,5 +47,5 @@ Create New subnet Check New subnet [Documentation] Check new subnet created in OpenDaylight [Tags] Check subnet OpenDaylight - ${resp} get ODLSession ${ODLREST}/${SUBNETID} + ${resp} get request ODLSession ${ODLREST}/${SUBNETID} Should be Equal As Strings ${resp.status_code} 200