]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
tests: Prevent errors when testing threshold.config 693/head
authorJeff Lucovsky <jeff@lucovsky.org>
Wed, 26 Jan 2022 18:28:54 +0000 (13:28 -0500)
committerVictor Julien <victor@inliniac.net>
Fri, 28 Jan 2022 18:01:40 +0000 (19:01 +0100)
This commit causes the tests to use a known, valid reference.config
file for the tests. With the introduction of reference.config file
validation, those errors will occur before threshold.config is
validated.

tests/issue-4407/test.yaml
tests/threshold-config-validate-01/test.yaml

index 02dbad018e2bc49a0a0c2c50bfb22219481d5ffb..effcdccbd2fdf160d4aca536a267f07845b8e0cc 100644 (file)
@@ -2,6 +2,6 @@ requires:
   min-version: 7
 
 command: |
-  ${SRCDIR}/src/suricata --set threshold-file="${TEST_DIR}/threshold.config" -l ${OUTPUT_DIR} -c ${TEST_DIR}/suricata.yaml -S ${TEST_DIR}/input.rules -T
+  ${SRCDIR}/src/suricata --set reference-config-file="${SRCDIR}/etc/reference.config" --set threshold-file="${TEST_DIR}/threshold.config" -l ${OUTPUT_DIR} -c ${TEST_DIR}/suricata.yaml -S ${TEST_DIR}/input.rules -T
 
 exit-code: 0
index 58edd857956ed8cc4a0f6d4688c666bde51dcf0b..abed67e8856ab48db86a54159833fda90c9a1d01 100644 (file)
@@ -2,7 +2,7 @@ requires:
     min-version: 7
 
 command: |
-  ${SRCDIR}/src/suricata --set threshold-file="${TEST_DIR}/threshold.config" -l ${OUTPUT_DIR} -c ${SRCDIR}/suricata.yaml -S ${TEST_DIR}/test.rules -T
+  ${SRCDIR}/src/suricata --set reference-config-file="${SRCDIR}/etc/reference.config" --set threshold-file="${TEST_DIR}/threshold.config" -l ${OUTPUT_DIR} -c ${SRCDIR}/suricata.yaml -S ${TEST_DIR}/test.rules -T
 
 exit-code: 1