- ${expected_rsp}= Get_Expected_Response_From_File ${exprspfile}
- ${rsp}= RequestsLibrary.Get_Request ${CONFIG_SESSION} ${url}
- TemplatedRequests.Normalize_Jsons_And_Compare ${expected_rsp} ${rsp.content}
-
-Get_Expected_Response_From_File
- [Arguments] ${exprspfile}
- [Documentation] Looks for release specific response first, then take default.
- ${status} ${expresponse}= BuiltIn.Run_Keyword_And_Ignore_Error OperatingSystem.Get File ${exprspfile}.${ODL_STREAM}
- Return From Keyword If '${status}' == 'PASS' ${expresponse}
- ${expresponse}= OperatingSystem.Get File ${exprspfile}
- [Return] ${expresponse}
+ &{mapping} BuiltIn.Create_Dictionary AS_PATH=${AS_PATH}
+ TemplatedRequests.Get_As_Json_Templated ${BGP_L3VPN_DIR}${/}${exprspdir} mapping=${mapping} session=${CONFIG_SESSION} verify=True