*** 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 ${NEUTRONURL} headers=${X-AUTH}
Suite Teardown Delete All Sessions
Library Collections
Library RequestsLibrary
-Variables ../../../variables/Variables.py
+Resource ../../../variables/Variables.robot
*** Variables ***
${OSREST} /v2.0/subnets
Log ${X-AUTH}
${resp} get request OSSession ${OSREST}
Should be Equal As Strings ${resp.status_code} 200
- ${OSResult} To Json ${resp.content}
+ ${OSResult} To Json ${resp.text}
Log ${OSResult}
Check OpenDaylight subnets
Create Session ODLSession http://${ODL_SYSTEM_IP}:${PORT} headers=${HEADERS} auth=${AUTH}
${resp} get request ODLSession ${NEUTRON_SUBNETS_API}
Should be Equal As Strings ${resp.status_code} 200
- ${ODLResult} To Json ${resp.content}
+ ${ODLResult} To Json ${resp.text}
Log ${ODLResult}
Create New subnet
Log ${data}
${resp} post request OSSession ${OSREST} data=${data}
Should be Equal As Strings ${resp.status_code} 201
- ${result} To JSON ${resp.content}
+ ${result} To JSON ${resp.text}
${result} Get From Dictionary ${result} subnet
${SUBNETID} Get From Dictionary ${result} id
Log ${result}