Added case 3 to test failed enumerated range within 2-level nested grouped avps
authorEduardo Ramos Testillano <eduardo.ramos.testillano@ericsson.com>
Sun, 22 Mar 2015 00:13:28 +0000 (01:13 +0100)
committerEduardo Ramos Testillano <eduardo.ramos.testillano@ericsson.com>
Sun, 22 Mar 2015 00:13:28 +0000 (01:13 +0100)
example/diameter/launcher/resources/basic/hex_examples/aar3-bad.hex [new file with mode: 0644]
example/diameter/launcher/resources/basic/hex_examples/readme.txt
example/diameter/launcher/resources/ft-client/tests/experiment2/ProtocolErrors/BadAARtoServer/aar3-bad.hex [new symlink]
example/diameter/launcher/resources/ft-client/tests/experiment2/ProtocolErrors/BadAARtoServer/case_3.tc [new file with mode: 0644]

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 (file)
index 0000000..62f45ba
--- /dev/null
@@ -0,0 +1 @@
+0100017cc000010901000014000000000000000000000107400000246f6373333b313333323737343433303b313b31333332373734343330000001024000000c01000014000001084000000c4f435333000001284000000c4f4353330000011b4000000c4f435333000001254000000c4f435333000001f8c000000f000028af3132320000000205c0000098000028af00000206c0000010000028af0000000000000207c000002c000028af000001fdc0000010000028af00000037000001ffc0000010000028af00000010000001f8c000000f000028af3132320000000204c0000010000028af0000007f00000203c0000010000028af00000085000001ffc0000010000028af00000002000001ca80000010000032db000000000000020fc0000010000028af00000000000001bb40000028000001c24000000c00000000000001bc4000001136323630333730393900000000000008000000133139322e3136382e302e31000000001e000000145741502e4d4f564953544152
index 9d01a0c..6b66557 100644 (file)
@@ -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 (symlink)
index 0000000..6705cc4
--- /dev/null
@@ -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 (file)
index 0000000..f1fdf40
--- /dev/null
@@ -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 <avp name="Result-Code" data="5004" alias="DIAMETER_INVALID_AVP_VALUE"/>
+CHECKPATTERN <avp name="Failed-AVP">( *)<avp name="Media-Component-Description"
+
+# TODO: check that the complete hierarchy to Flow-Status (the real bad avp)