-
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
Add tests for invalid config of github and office365 modules #1460
Conversation
I'm reviewing this.
Testing
|
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.
Ok, @TomasTurina, the code seems perfect to me, I've just noticed some unused import that I would like to remove. Also, I see some duplicated code that we may merge to make it more maintainable and readable, just a suggestion.
Finally, I have detected that those tests require the wazuh_modules.debug=2
value set in internal options to work. We are deprecating the option to add internal options on Jenkins, currently, we're encouraging the team to use a fixture to automatically set the required internal options before running the tests, so I would like to ask you to add this fixture to remove the requirement of setting this option previous to the test.
You have an example on how to do this here:
Line 32 in e5d6020
local_internal_options = { |
Please have all of this in consideration and ask us for review again when you finish making changes to the branch.
Best regards.
tests/integration/test_office365/test_configuration/test_invalid.py
Outdated
Show resolved
Hide resolved
tests/integration/test_github/test_configuration/test_invalid.py
Outdated
Show resolved
Hide resolved
The requested changes were applied by TomasTaurina and now I am going to launch automatic tests again to confirm that now everything (including the automatic internal option configuration) works as expected.
Testing
|
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.
Awesome job, thank you very much!
Description
This PR includes:
github
module configuration.office365
module configuration.Tests
pycodestyle --max-line-length=120 --show-source --show-pep8 file.py
.provision_documentation.sh
generate the docs without