- ${keys_with_bits}= BuiltIn.Create_List op
- ${expected_rsp}= Get Expected Response From File ${exprspfile}
- ${expected_json}= norm_json.Normalize Json Text ${expected_rsp} keys_with_bits=${keys_with_bits}
- ${rsp}= RequestsLibrary.Get Request session ${FLOWSPEC_URL}
- BuiltIn.Log ${rsp.content}
- ${received_json}= norm_json.Normalize Json Text ${rsp.content} keys_with_bits=${keys_with_bits}
- BuiltIn.Log ${received_json}
- BuiltIn.Log ${expected_json}
- BuiltIn.Should Be Equal ${received_json} ${expected_json}
-
-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 ${CURDIR}/../../../variables/bgpflowspec/${exprspfile}.${ODL_STREAM}
- Return From Keyword If '${status}' == 'PASS' ${expresponse}
- ${expresponse}= OperatingSystem.Get File ${CURDIR}/../../../variables/bgpflowspec/${exprspfile}
- [Return] ${expresponse}
+ [Arguments] ${exprspdir}
+ TemplatedRequests.Get_As_Json_Templated
+ ... ${BGP_VARIABLES_FOLDER}${/}${exprspdir}
+ ... session=${CONFIG_SESSION}
+ ... verify=True
+
+Normalize_And_Compare
+ [Documentation] Verify empty flowspec data
+ ${rsp} RequestsLibrary.GET On Session ${CONFIG_SESSION} url=${FLOWSPEC_URL}
+ TemplatedRequests.Normalize_Jsons_With_Bits_And_Compare
+ ... ${EXP0}
+ ... ${rsp.content}
+ ... keys_with_bits=${EMPTY_LIST}
+
+Verify_Empty_Flowspec_Data_Neon
+ [Documentation] Verify empty flowspec data on neon
+ TemplatedRequests.Get_As_Json_Templated
+ ... ${BGP_VARIABLES_FOLDER}${/}empty_route
+ ... session=${CONFIG_SESSION}
+ ... verify=True