Extend QA Framework for Integration Testing of Journald Log Collection #134
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.
Closes #130
Description
This PR addresses the need for rigorous integration testing of the
journald
log collection feature as outlined in Issue wazuh/wazuh#12862. The enhancements made to the Wazuh QA framework through this PR are designed to ensure that thejournald
log collection functionality is thoroughly tested, verifying its reliability and integration within the existing Wazuh ecosystem.Objectives
The main goal of this PR is to adapt and expand the current Wazuh QA framework to support integration testing specifically tailored for the
journald
log collection feature. By doing so, we aim to safeguard the robustness and effectiveness of this new feature, ensuring it performs as expected in diverse scenarios and configurations.Key Enhancements
Regex-based File Manipulation:
Logreader Configuration Extraction:
File Monitor Modifications:
only-future-event = no
feature, as it allows for the collection of logs generated prior to the monitor's execution.Issue Resolution:
Impact
These enhancements to the QA framework not only support the new
journald
log collection feature but also improve the overall testing capabilities of the Wazuh platform. By enabling more precise and varied testing scenarios, these changes contribute to the ongoing improvement of Wazuh's reliability and user trust.Conclusion
With the integration of these enhancements into the Wazuh QA framework, we are better equipped to handle the complexities of testing the
journald
log collection feature. This PR represents a significant step forward in our commitment to delivering high-quality and dependable features to the Wazuh community.