From: Philippe Antoine Date: Tue, 14 May 2024 12:12:45 +0000 (+0200) Subject: websocket: adds test for ping/pong opcodes X-Git-Tag: suricata-6.0.20~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1831%2Fhead;p=thirdparty%2Fsuricata-verify.git websocket: adds test for ping/pong opcodes Ticket: 7025 --- diff --git a/tests/websocket-ping/README.md b/tests/websocket-ping/README.md new file mode 100644 index 000000000..d7d399080 --- /dev/null +++ b/tests/websocket-ping/README.md @@ -0,0 +1,11 @@ +# Test Description + +Test websocket ping/pong opcodes + +## PCAP + +Found at https://lists.nongnu.org/archive/html/monit-general/2014-03/msg00009.html + +## Related issues + +https://redmine.openinfosecfoundation.org/issues/7025 diff --git a/tests/websocket-ping/input.pcap b/tests/websocket-ping/input.pcap new file mode 100644 index 000000000..8930c1822 Binary files /dev/null and b/tests/websocket-ping/input.pcap differ diff --git a/tests/websocket-ping/test.yaml b/tests/websocket-ping/test.yaml new file mode 100644 index 000000000..239e89744 --- /dev/null +++ b/tests/websocket-ping/test.yaml @@ -0,0 +1,17 @@ +requires: + min-version: 8 + +args: +- -k none + +checks: +- filter: + count: 1 + match: + event_type: websocket + websocket.opcode: ping +- filter: + count: 1 + match: + event_type: websocket + websocket.opcode: pong