*** Settings ***
Documentation Checking Port deleted in OpenStack are deleted also in OpenDaylight
-Suite Setup Create Session OSSession http://${NEUTRON}:9696 headers=${X-AUTH}
+Suite Setup Start Suite
Suite Teardown Delete All Sessions
Library RequestsLibrary
Variables ../../../variables/Variables.py
Check Port Deleted
[Documentation] Check port deleted in OpenDaylight
[Tags] Check port deleted OpenDaylight
- Create Session ODLSession http://${CONTROLLER}:${PORT} headers=${HEADERS} auth=${AUTH}
${resp} get request ODLSession ${ODLREST}
Should be Equal As Strings ${resp.status_code} 200
${ODLResult} To Json ${resp.content}
Log ${ODLResult}
${resp} get request ODLSession ${ODLREST}/${PORTID}
Should be Equal As Strings ${resp.status_code} 404
+
+*** Keywords ***
+Check Port Exists
+ [Arguments] ${portid}
+ ${resp} get request ODLSession ${ODLREST}/${portid}
+ 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}
+ Check Port Exists ${PORTID}
*** Settings ***
Documentation Checking Subnets deleted in OpenStack are deleted also in OpenDaylight
-Suite Setup Create Session OSSession http://${NEUTRON}:9696 headers=${X-AUTH}
+Suite Setup Start Suite
Suite Teardown Delete All Sessions
Library RequestsLibrary
Variables ../../../variables/Variables.py
Check New subnet deleted
[Documentation] Check subnet deleted in OpenDaylight
[Tags] Check subnet deleted OpenDaylight
- Create Session ODLSession http://${CONTROLLER}:${PORT} headers=${HEADERS} auth=${AUTH}
${resp} get request ODLSession ${ODLREST}
Should be Equal As Strings ${resp.status_code} 200
${ODLResult} To Json ${resp.content}
Log ${ODLResult}
${resp} get request ODLSession ${ODLREST}/${SUBNETID}
Should be Equal As Strings ${resp.status_code} 404
+
+*** Keywords ***
+Check Subnet Exists
+ [Arguments] ${subnetid}
+ ${resp} get request ODLSession ${ODLREST}/${subnetid}
+ 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}
+ Check Subnet Exists ${SUBNETID}
*** Settings ***
Documentation Checking Network deleted in OpenStack are deleted also in OpenDaylight
-Suite Setup Create Session OSSession http://${NEUTRON}:9696 headers=${X-AUTH}
+Suite Setup Start Suite
Suite Teardown Delete All Sessions
Library RequestsLibrary
Variables ../../../variables/Variables.py
Check Network deleted
[Documentation] Check network deleted in OpenDaylight
[Tags] Check Network OpenDaylight
- Create Session ODLSession http://${CONTROLLER}:${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}
- ${resp} get request ODLSession ${ODLREST}/${NetID}
+ ${resp} get request ODLSession ${ODLREST}/${NETID}
Should be Equal As Strings ${resp.status_code} 404
+
+*** Keywords ***
+Check Network Exists
+ [Arguments] ${netid}
+ ${resp} get request ODLSession ${ODLREST}/${netid}
+ 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}
+ Check Network Exists ${NETID}