Fix invalid AR conf in integration tests #4521
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The
ossec.log
was showing2023/09/11 12:38:29 wazuh-agent[1584] exec.c:65 at ReadExecConfig(): ERROR: (1313): Invalid active response config: 'shared/ar.conf'.
becauseshared/ar.conf
file started with an empty line due to:wazuh-qa/tests/integration/test_active_response/test_execd/conftest.py
Lines 16 to 17 in 3686d48
We have deleted that extra line.
Updated
tests/integration/test_active_response/test_execd/conftest.py
Testing performed
The test execution failed due to #4512, but we can see that the error log stopped appearing.
If we launch the test with the changes from #4511, the test passes:
passed-active-response.zip
tests/integration/test_active_response
tests/integration/test_active_response
tests/integration/test_active_response