Skip to content

Commit

Permalink
Add test for early check of RESERVED command with illegal remaining l…
Browse files Browse the repository at this point in the history
…ength #2325

Signed-off-by: Christoph Krey <c@ckrey.de>
  • Loading branch information
ckrey committed Nov 3, 2024
1 parent ba2b98d commit 008f306
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/broker/data/FORBIDDEN.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
{ "name": "01", "ver":4, "msgs": [{"type":"send", "payload":"01 00"}]},
{ "name": "02", "ver":4, "msgs": [{"type":"send", "payload":"02 00"}]},
{ "name": "04", "ver":4, "msgs": [{"type":"send", "payload":"04 00"}]},
{ "name": "08", "ver":4, "msgs": [{"type":"send", "payload":"08 00"}]}
{ "name": "08", "ver":4, "msgs": [{"type":"send", "payload":"08 00"}]},
{ "name": "0A with illegal length C0", "ver":4, "expect_disconnect":true, "msgs": [{"type":"send", "payload":"0A C0"}]}
]
},
{
Expand Down Expand Up @@ -46,7 +47,11 @@
{ "name": "08", "ver":5, "msgs": [
{"type":"send", "payload":"08 00"},
{"type":"recv", "payload":"E0 01 82", "comment":"DISCONNECT protocol error"}
]}
]},
{ "name": "0A with illegal length C0", "ver":5, "expect_disconnect":true, "msgs": [
{"type":"send", "payload":"0A C0"},
{"type":"recv", "payload":"E0 01 82", "comment":"DISCONNECT protocol error"}
]}
]
}
]

0 comments on commit 008f306

Please sign in to comment.