-
Notifications
You must be signed in to change notification settings - Fork 32
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
Vulnerability detector test module refactor: test_general_settings_min_full_scan_interval
#2461
Comments
Test designName
ObjectiveCheck that a full scan is performed when Test checks
Initial stage (setup)
Test phasesEnabled cases
Disabled cases
Final stage (teardown)
Test cases:ossec.conf
Packages and vulnerabilitiesNot determined. As the TimeTravel will be deprecated soon, we can't have a test that spent minutes or hours for each case. |
For now, there are two tiers for this test: Tier 0This test will check the minimal behavior and using short amounts of Tier 5This test will check the same than the tier 0 but with some additions:
Also, a method has been added to run the test by tier: If you specify a tier like |
New logic: - Tier 0: - A full scan starts after the min_full_scan_interval as expected. - The full scan ends. - Tier 5: - A full scan starts after the min_full_scan_interval as expected. - The vulnerabilities are set as pending. (working on it) - Every package is set as triaged. (working on it) - The sys_osinfo rows are set as triaged. (working on it) - The inserts/updates from pending to valid are performed. - The vulnerabilities alerts are logged correctly. - The pending/obsolete alerts are deleted. (working on it) - The delete event is logged correctly. (working on it)
Also added: - `data/configuration_template` - `data/test_cases` - `tools/configuration.py` method to update `configuration_template` from test - A few checks in `event_monitor.py`
The extended behavior will be used for the full scan test refactor.
It is asked to refactor the test module named
test_general_settings_min_full_scan_interval.py
.It is disabled for now, as it was failing or unstable, causing false positives.
Tasks
Checks
qa-docs
tool without errors.The text was updated successfully, but these errors were encountered: