From: Eduardo Ramos Testillano Date: Sun, 22 Mar 2015 00:13:28 +0000 (+0100) Subject: Added case 3 to test failed enumerated range within 2-level nested grouped avps X-Git-Tag: REFACTORING_TESTING_LIBRARY~215 X-Git-Url: https://git.teslayout.com/public/public/public/?a=commitdiff_plain;h=e5dbc04ac1132e004c1cf6459d02fb2989e048ae;p=anna.git Added case 3 to test failed enumerated range within 2-level nested grouped avps --- diff --git a/example/diameter/launcher/resources/basic/hex_examples/aar3-bad.hex b/example/diameter/launcher/resources/basic/hex_examples/aar3-bad.hex new file mode 100644 index 0000000..62f45ba --- /dev/null +++ b/example/diameter/launcher/resources/basic/hex_examples/aar3-bad.hex @@ -0,0 +1 @@ +0100017cc000010901000014000000000000000000000107400000246f6373333b313333323737343433303b313b31333332373734343330000001024000000c01000014000001084000000c4f435333000001284000000c4f4353330000011b4000000c4f435333000001254000000c4f435333000001f8c000000f000028af3132320000000205c0000098000028af00000206c0000010000028af0000000000000207c000002c000028af000001fdc0000010000028af00000037000001ffc0000010000028af00000010000001f8c000000f000028af3132320000000204c0000010000028af0000007f00000203c0000010000028af00000085000001ffc0000010000028af00000002000001ca80000010000032db000000000000020fc0000010000028af00000000000001bb40000028000001c24000000c00000000000001bc4000001136323630333730393900000000000008000000133139322e3136382e302e31000000001e000000145741502e4d4f564953544152 diff --git a/example/diameter/launcher/resources/basic/hex_examples/readme.txt b/example/diameter/launcher/resources/basic/hex_examples/readme.txt index 9d01a0c..6b66557 100644 --- a/example/diameter/launcher/resources/basic/hex_examples/readme.txt +++ b/example/diameter/launcher/resources/basic/hex_examples/readme.txt @@ -4,7 +4,13 @@ aar-bad.hex: comes from ../xml_examples/aar.xml Consists in a deliberated bad length encoded on grouped Subscription-Id length field (not multiple of 4). aar2-bad.hex: comes from ../xml_examples/aar2.xml - Consists in a deliberated bad length encoded on enumerated Flow-Status avp 2-level nested inside Media-Component-Description: + Consists in a deliberated bad length encoded on enumerated Flow-Status avp 2-level nested inside Media-Component-Description: + -> Media-Component-Description (grouped) + -> Media-Sub-Component (grouped) + -> Flow-Status (enumerated) + +aar3-bad.hex: comes from ../xml_examples/aar2.xml + Consists in a deliberated bad value (16) encoded on enumerated Flow-Status avp (range 0-15) 2-level nested inside Media-Component-Description: -> Media-Component-Description (grouped) -> Media-Sub-Component (grouped) -> Flow-Status (enumerated) diff --git a/example/diameter/launcher/resources/ft-client/tests/experiment2/ProtocolErrors/BadAARtoServer/aar3-bad.hex b/example/diameter/launcher/resources/ft-client/tests/experiment2/ProtocolErrors/BadAARtoServer/aar3-bad.hex new file mode 120000 index 0000000..6705cc4 --- /dev/null +++ b/example/diameter/launcher/resources/ft-client/tests/experiment2/ProtocolErrors/BadAARtoServer/aar3-bad.hex @@ -0,0 +1 @@ +../../../../hex_examples/aar3-bad.hex \ No newline at end of file diff --git a/example/diameter/launcher/resources/ft-client/tests/experiment2/ProtocolErrors/BadAARtoServer/case_3.tc b/example/diameter/launcher/resources/ft-client/tests/experiment2/ProtocolErrors/BadAARtoServer/case_3.tc new file mode 100644 index 0000000..f1fdf40 --- /dev/null +++ b/example/diameter/launcher/resources/ft-client/tests/experiment2/ProtocolErrors/BadAARtoServer/case_3.tc @@ -0,0 +1,13 @@ +# Bad value (15) encoded on enumerated Flow-Status avp (range 0-15) 2-level nested (Media-Component-Description -> Media-Sub-Component -> Flow-Status) + +# Send malformed AAR to the server: +SENDHEX2E aar3-bad.hex + +# Wait for message: +WAIT4MESSAGE + +# Check Failed-AVP & Subscription-Id within: +CHECKPATTERN +CHECKPATTERN ( *)