]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
Adds smtp pipelining test
authorPhilippe Antoine <contact@catenacyber.fr>
Fri, 14 Dec 2018 10:21:31 +0000 (11:21 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 8 Feb 2019 11:40:07 +0000 (12:40 +0100)
See #1863

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

diff --git a/tests/smtp-pipelining/input.pcap b/tests/smtp-pipelining/input.pcap
new file mode 100644 (file)
index 0000000..220f5e8
Binary files /dev/null and b/tests/smtp-pipelining/input.pcap differ
diff --git a/tests/smtp-pipelining/test.yaml b/tests/smtp-pipelining/test.yaml
new file mode 100644 (file)
index 0000000..80bae41
--- /dev/null
@@ -0,0 +1,18 @@
+requires:
+  features:
+    - HAVE_LIBJANSSON
+
+# disables checksum verification
+args:
+  - -k none
+
+checks:
+
+  # Check that there is one SMTP event with specific parameters.
+  - filter:
+      count: 1
+      match:
+        event_type: smtp
+        smtp.mail_from: <username@domain.com>
+        smtp.rcpt_to[0]: <john.doe@example.com>
+        email.status: PARSE_DONE