We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, the logic related to the creation and truncation of the ossec.log is placed inside the restart daemons fixtures. For example
ossec.log
@pytest.fixture(scope='module') def restart_logcollector(get_configuration, request): """Reset log file and start a new monitor.""" control_service('stop', daemon=DAEMON_NAME) truncate_file(LOG_FILE_PATH) file_monitor = FileMonitor(LOG_FILE_PATH) setattr(request.module, 'wazuh_log_monitor', file_monitor) control_service('start', daemon=DAEMON_NAME)
This is problematic due to the following reasons:
For these reasons, It should convenient to create a unique fixture for this task.
The text was updated successfully, but these errors were encountered:
Rebits
Successfully merging a pull request may close this issue.
Description
Currently, the logic related to the creation and truncation of the
ossec.log
is placed inside the restart daemons fixtures. For exampleThis is problematic due to the following reasons:
For these reasons, It should convenient to create a unique fixture for this task.
The text was updated successfully, but these errors were encountered: