]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
tests/ftp-data Test case for event type ftp_data 275/head
authorJeff Lucovsky <jeff@lucovsky.org>
Sun, 14 Jun 2020 15:13:33 +0000 (11:13 -0400)
committerVictor Julien <victor@inliniac.net>
Mon, 13 Jul 2020 13:48:50 +0000 (15:48 +0200)
This commit adds a test case to insure that `ftp_data` events are being
generated.

tests/output-eve-ftp-data/input.pcap [new file with mode: 0644]
tests/output-eve-ftp-data/test.yaml [new file with mode: 0644]

diff --git a/tests/output-eve-ftp-data/input.pcap b/tests/output-eve-ftp-data/input.pcap
new file mode 100644 (file)
index 0000000..473377a
Binary files /dev/null and b/tests/output-eve-ftp-data/input.pcap differ
diff --git a/tests/output-eve-ftp-data/test.yaml b/tests/output-eve-ftp-data/test.yaml
new file mode 100644 (file)
index 0000000..8323e0d
--- /dev/null
@@ -0,0 +1,18 @@
+requires:
+  min-version: 5
+
+args:
+  - --runmode=single
+
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: ftp_data
+
+  - filter:
+      count: 1
+      match:
+        event_type: ftp_data
+        ftp_data.filename: temp.txt
+        ftp_data.command: RETR