-
Notifications
You must be signed in to change notification settings - Fork 30
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
Fix 'test_windows/test_cpe_indexing' tests in 4.2 #1565
Comments
test_windows/test_cpe_indexing
tests in 4.2
2021-07-16Test results with the modules
The test still fails with the previously mentioned modules disabled, so in principle, we can discard that the failures are due to FileMonitor. It is important to note that in each run, the use cases that fail are different. Thus it may be due to timeouts. I continue researching. |
The test keeps failing to increase the timeout from 50 seconds to 120 seconds. You can also confirm in the attached files that the required logs are not written:
|
fix: Reduce the update interval of the NVD feed refac: Remove unnecessary modulesd service restarting refac: Reduce log-monitor timeout Closes: #1565
The reason is that for the log required by the test to be written, this table must not be empty. Closes: #1565
It seems that the origin of the failure is that the To generate the message required by the test, one of the requirements is that the table mentioned above contains data. The solution is to insert a vulnerability at the beginning of each use case in the |
Test Results:
This issue is fixed and closed by #1656 but I reopen because I see than sometime fails by #1602 |
2021-08-17To attempt to reproduce the error that occurs rarely and randomly, tests have been performed with different states of the VM (clean and dirty environment) and also reducing the CPU usage limit to 10% to see if the reduction of resources affected the number of times that the error occurs: Used Wazuh-QA branch:
As you can see, the last run has failed:
This is probably due to the issue: wazuh/wazuh#9309, so this bug should be fixed by that issue. |
Due to issue: wazuh/wazuh#9309 Closes: #1565
This issue is closed because the test was disabled by wazuh/wazuh#9309. |
fix: Reduce the update interval of the NVD feed refac: Remove unnecessary modulesd service restarting refac: Reduce log-monitor timeout Closes: #1565
The reason is that for the log required by the test to be written, this table must not be empty. Closes: #1565
Issue information
When it comes to starting with the test fix, there is some information that can help you:
I add some information obtained while researched the logs that failed.
Case:
test_window_version_indexing
whenmake_vuln_callback
is called. it requires research to know if there is a problem with parser error or if we don't detect log.In order to finish this issue the following tasks should be fulfilled:
test_windows/test_cpe_indexing
for 3 times.The text was updated successfully, but these errors were encountered: