]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
test: check fail if filestore v1 and v2 enabled
authorJason Ish <ish@unx.ca>
Thu, 18 Jan 2018 15:23:38 +0000 (09:23 -0600)
committerJason Ish <ish@unx.ca>
Thu, 18 Jan 2018 15:23:38 +0000 (09:23 -0600)
tests/filestore-v2.5-both-enabled/README.md [new file with mode: 0644]
tests/filestore-v2.5-both-enabled/suricata.yaml [new file with mode: 0644]
tests/filestore-v2.5-both-enabled/test.yaml [new file with mode: 0644]

diff --git a/tests/filestore-v2.5-both-enabled/README.md b/tests/filestore-v2.5-both-enabled/README.md
new file mode 100644 (file)
index 0000000..971577d
--- /dev/null
@@ -0,0 +1,2 @@
+Test that Suricata fails if file-store version 1 and version 2 are
+enabled at the same time.
diff --git a/tests/filestore-v2.5-both-enabled/suricata.yaml b/tests/filestore-v2.5-both-enabled/suricata.yaml
new file mode 100644 (file)
index 0000000..b935c8c
--- /dev/null
@@ -0,0 +1,12 @@
+%YAML 1.1
+---
+
+include: ../../etc/suricata-4.0.3.yaml
+
+outputs:
+  - file-store:
+      version: 2
+      enabled: yes
+      
+  - file-store:
+      enabled: yes
diff --git a/tests/filestore-v2.5-both-enabled/test.yaml b/tests/filestore-v2.5-both-enabled/test.yaml
new file mode 100644 (file)
index 0000000..955aca1
--- /dev/null
@@ -0,0 +1,10 @@
+requires:
+  features:
+    - HAVE_NSS
+  files:
+    - src/output-filestore.c
+
+pcap: ../filestore-v2.1-forced/suricata-update-pdf.pcap
+
+# For this test we expect an exit code.
+exit-code: 1