Wazuh QA framework for integration tests
- Clone the framework's repo:
git clone https://github.com/wazuh/qa-integration-framework.git
- Install python deps:
apt-get install python3 python3-dev python3-pip -y
- Install the framework:
pip install qa-integration-framework/
It will also install all the dependencies from the requirements.txt automatically.
You can just import it from the test suite as any other python library
from wazuh_testing.constants.paths.logs import WAZUH_LOG_PATH
from wazuh_testing.modules.analysisd import patterns
from wazuh_testing.tools.monitors.file_monitor import FileMonitor
from wazuh_testing.utils import callbacks
monitor = FileMonitor(WAZUH_LOG_PATH)
monitor.start(callback=callbacks.generate_callback(patterns.ANALYSISD_STARTED))