Ever so often there are some tests failing, because an add or remove
operation isn't processed internally by ODL before the next read is
sent. Add some very short sleep periods to avoid failures of this type.
Change-Id: I9a4ad8dfae737e29897a796dadade444138bbf88
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
(cherry picked from commit
e2724f305927b6a69ca62355cf10b0070ed2b1f4)
Attempt To Read Deleted Mapping
[Documentation] Try to read the mapping deleted in the previous test
Attempt To Read Deleted Mapping
[Documentation] Try to read the mapping deleted in the previous test
+ Sleep 200ms Avoid race conditions
${get_mapping}= OperatingSystem.Get File ${IPV4_RD}
${resp}= Post Log Check ${RPC_URL_PREFIX}:get-mapping ${get_mapping}
${output}= Get From Dictionary ${resp.json()} output
${get_mapping}= OperatingSystem.Get File ${IPV4_RD}
${resp}= Post Log Check ${RPC_URL_PREFIX}:get-mapping ${get_mapping}
${output}= Get From Dictionary ${resp.json()} output
${get_mapping}= OperatingSystem.Get File ${get_mapping_json_file}
Set Suite Variable ${CURJSON} ${get_mapping}
Post Log Check ${RPC_URL_PREFIX}:add-mapping ${add_mapping}
${get_mapping}= OperatingSystem.Get File ${get_mapping_json_file}
Set Suite Variable ${CURJSON} ${get_mapping}
Post Log Check ${RPC_URL_PREFIX}:add-mapping ${add_mapping}
+ Sleep 200ms Avoid race conditions
${resp}= Post Log Check ${RPC_URL_PREFIX}:get-mapping ${get_mapping}
${output}= Get From Dictionary ${resp.json()} output
${eid_record}= Get From Dictionary ${output} eidToLocatorRecord
${resp}= Post Log Check ${RPC_URL_PREFIX}:get-mapping ${get_mapping}
${output}= Get From Dictionary ${resp.json()} output
${eid_record}= Get From Dictionary ${output} eidToLocatorRecord
Remove Datatype And Check Removal
Variable Should Exist ${CURJSON}
Post Log Check ${RPC_URL_PREFIX}:remove-mapping ${CURJSON}
Remove Datatype And Check Removal
Variable Should Exist ${CURJSON}
Post Log Check ${RPC_URL_PREFIX}:remove-mapping ${CURJSON}
+ Sleep 200ms Avoid race conditions
${resp}= Post Log Check ${RPC_URL_PREFIX}:get-mapping ${CURJSON}
${output}= Get From Dictionary ${resp.json()} output
${eid_record}= Get From Dictionary ${output} eidToLocatorRecord
${resp}= Post Log Check ${RPC_URL_PREFIX}:get-mapping ${CURJSON}
${output}= Get From Dictionary ${resp.json()} output
${eid_record}= Get From Dictionary ${output} eidToLocatorRecord