Skip to content
New issue

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

Improve Wazuh local options configuration for qa-ctl #2009

Closed
Tracked by #2021 ...
jmv74211 opened this issue Oct 11, 2021 · 0 comments
Closed
Tracked by #2021 ...

Improve Wazuh local options configuration for qa-ctl #2009

jmv74211 opened this issue Oct 11, 2021 · 0 comments
Assignees

Comments

@jmv74211
Copy link
Contributor

Hi,

In order to run some integration tests, it is necessary to add lines to the local_internal_options.conf file to enable the ossec.log logging debugging for certain modules. Ideally, this configuration should be applied by the tests themselves (in fact, there are some that already do it), but in the meantime, it is necessary to add this configuration as a precondition to launch the test.

So far, qa-ctl is introducing the logging of all modules statically before running any test. This is inefficient and may even cause problems, since enabling logging of all modules may crash the FileMonitor and cause the test to fail causing a false positive.

As a last option, one could delegate such configuration to the environment provisioning, but this is still not efficient, since logging of all modules would have to be enabled.

It is requested to optimize this procedure so that only the minimum necessary lines are added for the test to work as long as they do not previously exist in that file. To do this, it is necessary to investigate the best way to do it, since this information can come from the test documentation, or have a dictionary that correlates the type of tests and configuration to be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant