From: Jason Ish Date: Thu, 18 Jan 2018 15:23:38 +0000 (-0600) Subject: test: check fail if filestore v1 and v2 enabled X-Git-Tag: suricata-6.0.4~520 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bd0cf2101abfc7f18cd61ad85df57f6fa92ad85;p=thirdparty%2Fsuricata-verify.git test: check fail if filestore v1 and v2 enabled --- diff --git a/tests/filestore-v2.5-both-enabled/README.md b/tests/filestore-v2.5-both-enabled/README.md new file mode 100644 index 000000000..971577d89 --- /dev/null +++ b/tests/filestore-v2.5-both-enabled/README.md @@ -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 index 000000000..b935c8ce7 --- /dev/null +++ b/tests/filestore-v2.5-both-enabled/suricata.yaml @@ -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 index 000000000..955aca186 --- /dev/null +++ b/tests/filestore-v2.5-both-enabled/test.yaml @@ -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