]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
tests: add test for issue 7241 2030/head
authorVictor Julien <victor@inliniac.net>
Fri, 6 Sep 2024 12:21:25 +0000 (14:21 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 9 Sep 2024 09:01:27 +0000 (11:01 +0200)
Test for 8+ only.

tests/bug-7241-01-8plus/test.rules [new file with mode: 0644]
tests/bug-7241-01-8plus/test.yaml [new file with mode: 0644]

diff --git a/tests/bug-7241-01-8plus/test.rules b/tests/bug-7241-01-8plus/test.rules
new file mode 100644 (file)
index 0000000..88094db
--- /dev/null
@@ -0,0 +1,4 @@
+drop tcp any any -> any any (flow:established; app-layer-protocol:!tls; sid:1;)
+drop tcp any any -> any any (flow:established; app-layer-protocol:!tls; prefilter; sid:2;)
+drop tcp any any -> any any (flow:established; app-layer-protocol:!tls,either; sid:3;)
+drop tcp any any -> any any (flow:established; app-layer-protocol:!tls,either; prefilter; sid:4;)
diff --git a/tests/bug-7241-01-8plus/test.yaml b/tests/bug-7241-01-8plus/test.yaml
new file mode 100644 (file)
index 0000000..5e89ca9
--- /dev/null
@@ -0,0 +1,30 @@
+requires:
+  min-version: 8
+
+pcap: ../tls/tls-random/input.pcap
+
+args:
+- -k none
+- --simulate-ips
+
+checks:
+- filter:
+    count: 0
+    match:
+      alert.signature_id: 1
+      event_type: alert
+- filter:
+    count: 0
+    match:
+      alert.signature_id: 2
+      event_type: alert
+- filter:
+    count: 0
+    match:
+      alert.signature_id: 3
+      event_type: alert
+- filter:
+    count: 0
+    match:
+      alert.signature_id: 4
+      event_type: alert