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)
--- /dev/null
+# 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)