X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Flibraries%2FLISPFlowMapping.robot;h=1eee8412b95350b8c14c0ca0a917dbf00b15f21b;hb=40c839d037084ba309cfe943d7385d1b83b08597;hp=570341a081f085941f66f6cf6a8e5450fc8cfaf1;hpb=5c315f3a18a9efc01cb1aaac97f81676e8efdc57;p=integration%2Ftest.git diff --git a/csit/libraries/LISPFlowMapping.robot b/csit/libraries/LISPFlowMapping.robot index 570341a081..1eee8412b9 100644 --- a/csit/libraries/LISPFlowMapping.robot +++ b/csit/libraries/LISPFlowMapping.robot @@ -52,16 +52,39 @@ Get Elp Hop ${hop}= Get From List ${exp_loc_path} ${actual_hop_index} [Return] ${hop} +Check Key Removal + [Arguments] ${json} + Post Log Check ${LFM_RPC_API}:get-key ${json} status_codes=${DELETED_STATUS_CODES} + Check Mapping Removal [Arguments] ${json} - Post Log Check ${LFM_RPC_API}:get-mapping ${json} 404 + Post Log Check ${LFM_RPC_API}:get-mapping ${json} status_codes=${DELETED_STATUS_CODES} Get Mapping JSON - [Documentation] Returns mapping record JSON dict [Arguments] ${eid} ${rloc} + [Documentation] Returns mapping record JSON dict ${loc_record}= Get LocatorRecord Object ${rloc} ${lisp_address}= Get LispAddress Object ${eid} ${loc_record_list}= Create List ${loc_record} ${mapping_record_json}= Get MappingRecord JSON ${lisp_address} ${loc_record_list} ${mapping}= Wrap input ${mapping_record_json} - [return] ${mapping} + [Return] ${mapping} + +Post Log Check Authkey + [Arguments] ${json} ${password} + [Documentation] Extend the 'Post Log Check' keyword to check for the correct authentication key + ${resp}= Post Log Check ${LFM_RPC_API}:get-key ${json} + Authentication Key Should Be ${resp} ${password} + +Post Log Check Ipv4 Rloc + [Arguments] ${json} ${rloc} + [Documentation] Extend the 'Post Log Check' keyword to check for the correct IPv4 RLOC + ${resp}= Post Log Check ${LFM_RPC_API}:get-mapping ${json} + Ipv4 Rloc Should Be ${resp} ${rloc} + +Post Log Check LocatorRecord + [Arguments] ${json} + [Documentation] Extend the 'Post Log Check' keyword to check for the existence of a LocatorRecord + ${resp}= Post Log Check ${LFM_RPC_API}:get-mapping ${json} + ${eid_record}= Get Eid Record ${resp} + Dictionary Should Contain Key ${eid_record} LocatorRecord