X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fresources%2Fft-client%2Ftests%2Fcase_1.sh;h=b353c632818e4278b0b7e0ad6306ec67a1014fd1;hb=89c8f9bb52bd0c11386ac114fdfd8723d9ca643e;hp=7eca089754e7372ba5e6130771af61cc166f9d9f;hpb=a95d9b269edf65f21529c10ed0caa71cefec110c;p=anna.git diff --git a/example/diameter/launcher/resources/ft-client/tests/case_1.sh b/example/diameter/launcher/resources/ft-client/tests/case_1.sh index 7eca089..b353c63 100755 --- a/example/diameter/launcher/resources/ft-client/tests/case_1.sh +++ b/example/diameter/launcher/resources/ft-client/tests/case_1.sh @@ -1,9 +1,15 @@ #!/bin/bash +# In this test we will send a incorrect message (AAR) to the server peer: +# 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) +# +# The server shall answer with the FailedAVP and we will check this to validate the test. + ############# # VARIABLES # ############# - +# Paths from the point of view of ADL executable: +REQ1_HEX=./hex_examples/aar-bad.hex ############# # FUNCTIONS # @@ -20,5 +26,22 @@ cd `dirname $0` # Source utils: source common.sh -# xxxx -echo "testing ..." +# Clean traffic traces: +rm ../launcher.log* + +# Send incorrect AAR: +send_hex $REQ1_HEX & + +# Monitor activity: +monitor_4_message ../launcher.log.recvfe 10 + +# Check if message was received: +[ $? -ne 0 ] && test_failed "Missing answer from the server" + +# Check launcher.log.recvfe: +check_pattern "" ../launcher.log.recvfe +check_pattern "( *)