You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
of test execution.
This fixture is needed because when `test_feeds/alas` are finished,
Wazuh is stopped, but the following tests, need Wazuh to be started.
We had to add a conftest.py file in test_feeds/alas that should be deleted in the future, when refactor of Vulnerability Detector is done.
Tests results
We are going to test Vulnerability Detector, in order to check we keep the full green. We have created the branch temp-testing-vd in which the changes of the branch 1733-full-green-vuln-det have been merged.
We solved the problem with the RedHat test by using temporal files. However, when we launched every test in vulnerability detector, it failed again and new failures appeared.
It seems that test_cpe_indexing is consistently failing when all the VD suite is launched. This is maybe produced by the mock_agent fixture. In order to avoid possible errors motivated by an unclean environment, this fixture is going to be replaced for this test for a new one with module scope 4a3cdb0.
It seems that this new fixture does not solve this issue, talking with @damarisg, it seems that this test was configured to skip in 4.2 version, but in master after 4.2 merges, it seems it is active.
The reason because this test is skipped in 4.2 is the blocked database error (#1565 (comment)). However, it seems that errors obtained in Jenkins build seem not to be related to this issue. Further research is needed, and a clean fixture has been added in order to ensure the environment is correctly set at test run time .
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.
Description
This PR adds vulnerability detector tests for Amazon Linux 1 and 2.
Test results
Linux manager (Jenkins, CentOS 7), Wazuh version 4.3.0-0.commitb3643d0
test_windows (build)
======================== 28 passed in 260.72s (0:04:20) ========================
test_scan_results (build)
======================== 62 passed in 981.00s (0:16:21) ========================
test_providers (build)
======================= 92 passed in 1855.92s (0:30:55) ========================
test_general_settings (build)
================== 19 passed, 2 skipped in 180.02s (0:03:00) ===================
test_feeds (build)
================ 2312 passed, 47 xfailed in 23185.17s (6:26:25) ================
Tests
pycodestyle --max-line-length=120 --show-source --show-pep8 file.py
.provision_documentation.sh
generate the docs without errors.