3 # In this test we will send a incorrect message (AAR) to the server peer:
4 # Warning | source/diameter/codec/Message.cpp (387) | Internal Avp decoding error (avp code = 443): Avp format error, the avp length is incorrect (must be multiple of 4 on grouped type)
6 # The server shall answer with the FailedAVP and we will check this to validate the test.
11 # Paths from the point of view of ADL executable:
12 REQ1_HEX=./hex_examples/aar-bad.hex
23 # Goto working directory
29 # Clean traffic traces:
36 monitor_4_message ../launcher.log.recvfe 10
38 # Check if message was received:
39 [ $? -ne 0 ] && test_failed "Missing answer from the server"
41 # Check launcher.log.recvfe:
42 check_pattern "<avp name=\"Result-Code\" data=\"5004\" alias=\"DIAMETER_INVALID_AVP_VALUE\"/>" ../launcher.log.recvfe
43 check_pattern "<avp name=\"Failed-AVP\">( *)<avp name=\"Subscription-Id\"" ../launcher.log.recvfe
46 test_ok "Received answer to bad-aar message indicating Failed-AVP as Subscription-Id"