Library RequestsLibrary
Resource Utils.robot
Resource ClusterManagement.robot
+Resource ${CURDIR}/TemplatedRequests.robot
Variables ../variables/Variables.py
*** Variables ***
Log data: ${body}
${resp} RequestsLibrary.Put Request session ${SOUTHBOUND_CONFIG_API}${mininet_ip}:${OVSDB_PORT} data=${body}
Log ${resp.content}
- Should Be Equal As Strings ${resp.status_code} "20?"
+ Should Contain ${ALLOWED_STATUS_CODES} ${resp.status_code}
Disconnect From Ovsdb Node
[Arguments] ${mininet_ip}
Log data: ${body}
${resp} RequestsLibrary.Put Request session ${SOUTHBOUND_CONFIG_API}${mininet_ip}:${OVSDB_PORT}%2Fbridge%2F${bridge_num} data=${body}
Log ${resp.content}
- Should Be Equal As Strings ${resp.status_code} "20?"
+ Should Contain ${ALLOWED_STATUS_CODES} ${resp.status_code}
Delete Bridge From Ovsdb Node
[Arguments] ${mininet_ip} ${bridge_num}
Log data: ${body}
${resp} RequestsLibrary.Put Request session ${SOUTHBOUND_CONFIG_API}${mininet_ip}:${OVSDB_PORT}%2Fbridge%2F${bridge_num}/termination-point/${vxlan_port}/ data=${body}
Log ${resp.content}
- Should Be Equal As Strings ${resp.status_code} "20?"
+ Should Contain ${ALLOWED_STATUS_CODES} ${resp.status_code}
Verify OVS Reports Connected
[Arguments] ${tools_system}=${TOOLS_SYSTEM_IP}
Log data: ${body}
${resp} RequestsLibrary.Put Request session ${SOUTHBOUND_CONFIG_API} data=${body}
Log ${resp.content}
- Should Be Equal As Strings ${resp.status_code} "20?"
+ Should Contain ${ALLOWED_STATUS_CODES} ${resp.status_code}
Wait Until Keyword Succeeds 5s 1s Verify OVS Reports Connected
Get Operational Topology
Log data: ${body}
${resp} RequestsLibrary.Put Request session ${SOUTHBOUND_CONFIG_API}%2Fbridge%2F${BRIDGE} data=${body}
Log ${resp.content}
- Should Be Equal As Strings ${resp.status_code} "20?"
+ Should Contain ${ALLOWED_STATUS_CODES} ${resp.status_code}
Get Config Topology with Bridge
[Documentation] This will fetch the configuration topology from configuration data store to verify the bridge is added to the data store
Log data: ${body}
${resp} RequestsLibrary.Put Request session ${SOUTHBOUND_CONFIG_API}%2Fbridge%2F${BRIDGE}/termination-point/vxlanport/ data=${body}
Log ${resp.content}
- Should Be Equal As Strings ${resp.status_code} "20?"
+ Should Contain ${ALLOWED_STATUS_CODES} ${resp.status_code}
Get Operational Topology with Port
[Documentation] This request will fetch the operational topology after the Port is added to the bridge
Log data: ${body}
${resp} RequestsLibrary.Put Request session ${SOUTHBOUND_CONFIG_API} data=${body}
Log ${resp.content}
- Should Be Equal As Strings ${resp.status_code} "20?"
+ Should Contain ${ALLOWED_STATUS_CODES} ${resp.status_code}
Get Operational Topology After Node Reconnect
[Documentation] This request will fetch the operational topology from the connected OVSDB nodes to verify the bridge is added to the data store
Log URL is ${uri}
Log data: ${body}
${resp} RequestsLibrary.Put Request session ${uri} data=${body}
- Should Be Equal As Strings ${resp.status_code} "20?"
+ Should Contain ${ALLOWED_STATUS_CODES} ${resp.status_code}
Get Operational Topology to verify the bridge has been added through rest call
[Documentation] This request will fetch the operational topology from the connected OVSDB nodes
Log URL is ${uri}
Log data: ${body}
${resp} RequestsLibrary.Put Request session ${uri} data=${body}
- Should Be Equal As Strings ${resp.status_code} "20?"
+ Should Contain ${ALLOWED_STATUS_CODES} ${resp.status_code}
Get Config Topology to verify the entry of existing bridge added to the config datastore
[Documentation] This request will fetch the configuration topology from configuration data store
Log URL is ${SOUTHBOUND_CONFIG_API}
${resp} RequestsLibrary.Put Request session ${SOUTHBOUND_CONFIG_API} data=${body}
Log ${resp.content}
- Should Be Equal As Strings ${resp.status_code} "20?"
+ Should Contain ${ALLOWED_STATUS_CODES} ${resp.status_code}
Get Operational Topology
[Documentation] This request will fetch the operational topology from the connected OVSDB nodes
Log data: ${body}
${resp} RequestsLibrary.Put Request session ${SOUTHBOUND_CONFIG_API}%2Fbridge%2F${BRIDGE} data=${body}
Log ${resp.content}
- Should Be Equal As Strings ${resp.status_code} "20?"
+ Should Contain ${ALLOWED_STATUS_CODES} ${resp.status_code}
Get Config Topology with Bridge
[Documentation] This will fetch the configuration topology from configuration data store to verify the bridge is added to the data store
Log data: ${body}
${resp} RequestsLibrary.Put Request session ${SOUTHBOUND_CONFIG_API}%2Fbridge%2F${BRIDGE}/termination-point/vx1/ data=${body}
Log ${resp.content}
- Should Be Equal As Strings ${resp.status_code} "20?"
+ Should Contain ${ALLOWED_STATUS_CODES} ${resp.status_code}
Get Config Topology with Bridge and Port
[Documentation] This will fetch the configuration topology from configuration data store to verify the bridge is added to the data store
Log data: ${body}
${resp} RequestsLibrary.Put Request session ${SOUTHBOUND_CONFIG_API}%2Fbridge%2F${BRIDGE}/termination-point/vxlanport/ data=${body}
Log ${resp.content}
- Should Be Equal As Strings ${resp.status_code} "20?"
+ Should Contain ${ALLOWED_STATUS_CODES} ${resp.status_code}
Get Operational Topology with Port
[Documentation] This request will fetch the operational topology after the Port is added to the bridge
Check For Bug 4756
[Documentation] bug 4756 has been seen in the OVSDB Southbound suites. This test case should be one of the last test
- ... case executed.
+ ... case executed
Check Karaf Log File Does Not Have Messages ${ODL_SYSTEM_IP} SimpleShardDataTreeCohort.*Unexpected failure in validation phase
[Teardown] Report_Failure_Due_To_Bug 4756
Log URL is ${uri}
Log data: ${body}
${resp} RequestsLibrary.Put Request session ${uri} data=${body}
- Should Be Equal As Strings ${resp.status_code} "20?"
+ Should Contain ${ALLOWED_STATUS_CODES} ${resp.status_code}
Connect Controller To OVSDB Node
[Documentation] Initiate the connection to OVSDB node from controller
Log data: ${body}
${resp} RequestsLibrary.Put Request session ${CONFIG_TOPO_API}/topology/ovsdb:1/node/ovsdb:%2F%2F${TOOLS_SYSTEM_IP}:${OVSDB_PORT} data=${body}
Log ${resp.content}
- Should Be Equal As Strings ${resp.status_code} "20?"
+ Should Contain ${ALLOWED_STATUS_CODES} ${resp.status_code}
Wait Until Keyword Succeeds 5s 1s Verify OVS Reports Connected