-
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
Migrate test_providers documentation to qa-docs #2377
Conversation
- r'OVAL feed .* from provider .* not correctly assigned' | ||
- r'Feed .* from provider .* was not correctly assigned' | ||
- r'Event 'Fetching or Downloading .*' was not received' | ||
- r'Event 'Trying to download .*' was not received' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the following callbacks
- r'OVAL feed .* from provider .* not correctly assigned' | |
- r'Feed .* from provider .* was not correctly assigned' | |
- r'Event 'Fetching or Downloading .*' was not received' | |
- r'Event 'Trying to download .*' was not received' | |
- r'(Path|Url): (.*'|'none').*' | |
- r'Multi (path|url): .*' | |
- r'(Fetching feed from|Downloading) .*' | |
- r'((Fetching .* from|Downloading) .*|.*Trying to download).*' |
- 'Error log Configuration error at /var/ossec/etc/ossec.conf not found' | ||
- r'Could not find .* update starting log' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the following callbacks
- 'Error log Configuration error at /var/ossec/etc/ossec.conf not found' | |
- r'Could not find .* update starting log' | |
- r'.*: Configuration error at.*' | |
- r'Starting .* database update' |
- r'Warning log 'Invalid option 'os' for .* provider not found' | ||
- r'Could not find .* update starting log' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the following callbacks
- r'Warning log 'Invalid option 'os' for .* provider not found' | |
- r'Could not find .* update starting log' | |
- r'.*Invalid option .* for .* provider.*' | |
- r'Could not find .* update starting log' |
test. | ||
|
||
expected_output: | ||
- r'It has been downloaded a feed from an invalid year .* for .*' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- r'It has been downloaded a feed from an invalid year .* for .*' | |
- r'.*Downloading .*cve.json\?after=1999-01-01.*' | |
- r'.*Downloading .*cve.json\?after=.*-01-01.*' | |
- r'.*Downloading .*nvdcve-\d.\d-.*.meta.*' | |
- r'ERROR: Invalid content for \'update_from_year\' option at module \'vulnerability-detector\'' |
test. | ||
|
||
expected_output: | ||
- r'Unexpected event .* database updating' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the following callbacks
- r'Starting .* database update'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
Description
As part of epic #1796, this PR adds the missing documentation and migrates the current documentation to the new format used by qa-docs.
The schema used is the one defined in issue #1694
Generated documentation
test_providers_enable.json
test_providers_multiple_providers.json
test_providers_no_os.json
test_providers_os.json
test_providers_update_from_year.json
test_providers_update_interval.json
Tests
pycodestyle --max-line-length=120 --show-source --show-pep8 file.py
.qa-docs
tool does not raise any error.