It follows the last updates of ODL's robotframework files [1].
Useless Set Suite Variable calls are also removed.
[1] https://git.opendaylight.org/gerrit/#/c/36569/
Change-Id: I98ec20ded7978cd56e6de6b62bce04b8c6ba1e9a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
${PortNorthbound} ${NeutronNorthbound}/ports
*** Settings ***
-Suite Setup Create Session ODL http://${CONTROLLER}:${PORT} headers=${HEADERS} auth=${AUTH}
+Suite Setup Create Session ODL http://${ODL_SYSTEM_IP}:${PORT} headers=${HEADERS} auth=${AUTH}
Suite Teardown Delete All Sessions
Library RequestsLibrary
Variables ../../../variables/Variables.py
*** Settings ***
Documentation Checking Network 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 Collections
Library RequestsLibrary
${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 Networks
[Documentation] Checking OpenDaylight Neutron API for known networks
[Tags] Network Neutron OpenDaylight
- Create Session ODLSession http://${CONTROLLER}:${PORT} headers=${HEADERS} auth=${AUTH}
+ 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 Network
*** 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 Collections
Library RequestsLibrary
${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
[Tags] Subnets Neutron OpenDaylight
- Create Session ODLSession http://${CONTROLLER}:${PORT} headers=${HEADERS} auth=${AUTH}
+ 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
*** Settings ***
Documentation Checking Port 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 Collections
Library RequestsLibrary
${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 ports
[Documentation] Checking OpenDaylight Neutron API for known ports
[Tags] Ports Neutron OpenDaylight
- Create Session ODLSession http://${CONTROLLER}:${PORT} headers=${HEADERS} auth=${AUTH}
+ 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 Port
${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}
${resp} get request ODLSession ${ODLREST}/${PORTID}
Should be Equal As Strings ${resp.status_code} 404
Should be Equal As Strings ${resp.status_code} 200
Start Suite
- Create Session OSSession http://${NEUTRON}:9696 headers=${X-AUTH}
- Create Session ODLSession http://${CONTROLLER}:${PORT} headers=${HEADERS} auth=${AUTH}
+ Create Session OSSession http://${OPENSTACK}:9696 headers=${X-AUTH}
+ Create Session ODLSession http://${ODL_SYSTEM_IP}:${PORT} headers=${HEADERS} auth=${AUTH}
Check Port Exists ${PORTID}
${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}
${resp} get request ODLSession ${ODLREST}/${SUBNETID}
Should be Equal As Strings ${resp.status_code} 404
Should be Equal As Strings ${resp.status_code} 200
Start Suite
- Create Session OSSession http://${NEUTRON}:9696 headers=${X-AUTH}
- Create Session ODLSession http://${CONTROLLER}:${PORT} headers=${HEADERS} auth=${AUTH}
+ Create Session OSSession http://${OPENSTACK}:9696 headers=${X-AUTH}
+ Create Session ODLSession http://${ODL_SYSTEM_IP}:${PORT} headers=${HEADERS} auth=${AUTH}
Check Subnet Exists ${SUBNETID}
${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}
${resp} get request ODLSession ${ODLREST}/${NETID}
Should be Equal As Strings ${resp.status_code} 404
Should be Equal As Strings ${resp.status_code} 200
Start Suite
- Create Session OSSession http://${NEUTRON}:9696 headers=${X-AUTH}
- Create Session ODLSession http://${CONTROLLER}:${PORT} headers=${HEADERS} auth=${AUTH}
+ Create Session OSSession http://${OPENSTACK}:9696 headers=${X-AUTH}
+ Create Session ODLSession http://${ODL_SYSTEM_IP}:${PORT} headers=${HEADERS} auth=${AUTH}
Check Network Exists ${NETID}
((test_num++))
echo -e "${light_green}Starting test: $line ${nc}"
- pybot -v OPENSTACK:${KEYSTONE_IP} -v NEUTRON:${NEUTRON_IP} -v PORT:${ODL_PORT} -v CONTROLLER:${ODL_IP} ${REPO_DIR}/$line
+ pybot -v OPENSTACK:${NEUTRON_IP} -v PORT:${ODL_PORT} -v ODL_SYSTEM_IP:${ODL_IP} ${REPO_DIR}/$line
mkdir -p $RESULTS_DIR/logs/${test_num}
mv log.html $RESULTS_DIR/logs/${test_num}/
mv report.html $RESULTS_DIR/logs/${test_num}/