From f6baec3bb9844ad76b3af6f460ccc060a05ce556 Mon Sep 17 00:00:00 2001 From: Jeff Lucovsky Date: Wed, 26 Jan 2022 13:28:54 -0500 Subject: [PATCH] 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. --- tests/issue-4407/test.yaml | 2 +- tests/threshold-config-validate-01/test.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.2