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 Networks
Create Session ODLSession http://${ODL_SYSTEM_IP}:${PORT} headers=${HEADERS} auth=${AUTH}
${resp} get request ODLSession ${NEUTRON_NETWORKS_API}
Should be Equal As Strings ${resp.status_code} 200
- ${ODLResult} To Json ${resp.content}
+ ${ODLResult} To Json ${resp.text}
Log ${ODLResult}
Create Network
Log ${postNet}
${resp} post request OSSession ${OSREST} data=${postNet}
Should be Equal As Strings ${resp.status_code} 201
- ${result} To JSON ${resp.content}
+ ${result} To JSON ${resp.text}
${result} Get From Dictionary ${result} network
${NETID} Get From Dictionary ${result} id
Log ${result}
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}
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 ports
Create Session ODLSession http://${ODL_SYSTEM_IP}:${PORT} headers=${HEADERS} auth=${AUTH}
${resp} get request ODLSession ${NEUTRON_PORTS_API}
Should be Equal As Strings ${resp.status_code} 200
- ${ODLResult} To Json ${resp.content}
+ ${ODLResult} To Json ${resp.text}
Log ${ODLResult}
Create New Port
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} port
${PORTID} Get From Dictionary ${result} id
Log ${result}
Log ${data}
${resp} delete request OSSession ${OSREST}
Should be Equal As Strings ${resp.status_code} 204
- Log ${resp.content}
+ Log ${resp.text}
sleep 2
Check Port Deleted
[Tags] Check port deleted OpenDaylight
${resp} get request ODLSession ${NEUTRON_PORTS_API}
Should be Equal As Strings ${resp.status_code} 200
- ${ODLResult} To Json ${resp.content}
+ ${ODLResult} To Json ${resp.text}
Log ${ODLResult}
${resp} get request ODLSession ${NEUTRON_PORTS_API}/${PORTID}
Should be Equal As Strings ${resp.status_code} 404
Log ${data}
${resp} delete request OSSession ${OSREST}
Should be Equal As Strings ${resp.status_code} 204
- Log ${resp.content}
+ Log ${resp.text}
sleep 2
Check New subnet deleted
[Tags] Check subnet deleted OpenDaylight
${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}
${resp} get request ODLSession ${NEUTRON_SUBNETS_API}/${SUBNETID}
Should be Equal As Strings ${resp.status_code} 404
Log ${postNet}
${resp} delete request OSSession ${OSREST}
Should be Equal As Strings ${resp.status_code} 204
- Log ${resp.content}
+ Log ${resp.text}
sleep 2
Check Network deleted
[Tags] Check Network OpenDaylight
${resp} get request ODLSession ${NEUTRON_NETWORKS_API}
Should be Equal As Strings ${resp.status_code} 200
- ${ODLResult} To Json ${resp.content}
+ ${ODLResult} To Json ${resp.text}
Log ${ODLResult}
${resp} get request ODLSession ${NEUTRON_NETWORKS_API}/${NETID}
Should be Equal As Strings ${resp.status_code} 404
${output} = OpenStackOperations.Neutron Security Group Show ${sg_id}
Should Contain ${output} ${verify_name}
${resp} RequestsLibrary.Get Request session ${SEC_GROUP_API}
- BuiltIn.Log ${resp.content}
+ BuiltIn.Log ${resp.text}
BuiltIn.Should Be Equal As Strings ${resp.status_code} ${RESP_CODE_200}
- BuiltIn.Should Contain ${resp.content} ${verify_name}
+ BuiltIn.Should Contain ${resp.text} ${verify_name}
Neutron Rule Creation With Invalid Parameters
[Arguments] ${sg_name} ${additional_args} ${expected_error}