]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
websocket: adds test for ping/pong opcodes 1831/head
authorPhilippe Antoine <pantoine@oisf.net>
Tue, 14 May 2024 12:12:45 +0000 (14:12 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 14 May 2024 16:00:22 +0000 (18:00 +0200)
Ticket: 7025

tests/websocket-ping/README.md [new file with mode: 0644]
tests/websocket-ping/input.pcap [new file with mode: 0644]
tests/websocket-ping/test.yaml [new file with mode: 0644]

diff --git a/tests/websocket-ping/README.md b/tests/websocket-ping/README.md
new file mode 100644 (file)
index 0000000..d7d3990
--- /dev/null
@@ -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 (file)
index 0000000..8930c18
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 (file)
index 0000000..239e897
--- /dev/null
@@ -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