From: Jeff Lucovsky Date: Wed, 26 Jan 2022 18:28:54 +0000 (-0500) Subject: tests: Prevent errors when testing threshold.config X-Git-Tag: suricata-6.0.5~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6baec3bb9844ad76b3af6f460ccc060a05ce556;p=thirdparty%2Fsuricata-verify.git tests: Prevent errors when testing threshold.config 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. --- diff --git a/tests/issue-4407/test.yaml b/tests/issue-4407/test.yaml index 02dbad018..effcdccbd 100644 --- a/tests/issue-4407/test.yaml +++ b/tests/issue-4407/test.yaml @@ -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 diff --git a/tests/threshold-config-validate-01/test.yaml b/tests/threshold-config-validate-01/test.yaml index 58edd8579..abed67e88 100644 --- a/tests/threshold-config-validate-01/test.yaml +++ b/tests/threshold-config-validate-01/test.yaml @@ -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