]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
smtp: adds test for protocol recognition on quit 2788/head 2898/head
authorPhilippe Antoine <pantoine@oisf.net>
Tue, 2 Dec 2025 10:07:58 +0000 (11:07 +0100)
committerPhilippe Antoine <pantoine@oisf.net>
Thu, 29 Jan 2026 20:20:11 +0000 (21:20 +0100)
Ticket: 6591

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

diff --git a/tests/smtp-quit/README.md b/tests/smtp-quit/README.md
new file mode 100644 (file)
index 0000000..80878c4
--- /dev/null
@@ -0,0 +1,11 @@
+# Test Description
+
+Test SMTP protocol detection with QUIT pattern (vs FTP)
+
+## PCAP
+
+This PCAP comes from redmine ticket https://redmine.openinfosecfoundation.org/issues/6591 with craft to change ports
+
+## Related issues
+
+Ticket https://redmine.openinfosecfoundation.org/issues/6591
diff --git a/tests/smtp-quit/input.pcap b/tests/smtp-quit/input.pcap
new file mode 100644 (file)
index 0000000..7ebec84
Binary files /dev/null and b/tests/smtp-quit/input.pcap differ
diff --git a/tests/smtp-quit/test.yaml b/tests/smtp-quit/test.yaml
new file mode 100644 (file)
index 0000000..c35b2b8
--- /dev/null
@@ -0,0 +1,12 @@
+requires:
+  min-version: 9
+
+args:
+  - -k none
+
+checks:
+ - filter:
+     count: 1
+     match:
+       event_type: flow
+       app_proto: smtp