System test feature
[anna.git] / example / diameter / launcher / deployments / ft-client / tests / ProtocolErrors / BadAARtoServer / case_2.tc
diff --git a/example/diameter/launcher/deployments/ft-client/tests/ProtocolErrors/BadAARtoServer/case_2.tc b/example/diameter/launcher/deployments/ft-client/tests/ProtocolErrors/BadAARtoServer/case_2.tc
new file mode 100644 (file)
index 0000000..1727638
--- /dev/null
@@ -0,0 +1,13 @@
+# Bad length encoded on enumerated Flow-Status avp 2-level nested (Media-Component-Description -> Media-Sub-Component -> Flow-Status)
+
+# Send malformed AAR to the server:
+SENDHEX2E aar2-bad.hex
+
+# Wait for message:
+WAIT4MESSAGE
+
+# Check Failed-AVP & Subscription-Id within:
+CHECKPATTERN <avp name="Result-Code" data="5014" alias="DIAMETER_INVALID_AVP_LENGTH"/>
+CHECKPATTERN <avp name="Failed-AVP">( *)<avp name="Media-Component-Description"
+
+# TODO: check that the complete hierarchy to Flow-Status (the real bad avp)