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
module sanity checks: improve alias handling #59060
Conversation
This comment has been minimized.
This comment has been minimized.
(The failing sanity tests are intentional, I will start with updating |
e1cf9e1
to
e23f7bf
Compare
(Updated ignore.txt with https://gist.github.com/felixfontein/219b19f8c39b7755b4482e3c28212d7e) |
aa7fdac
to
869d873
Compare
869d873
to
4c362a7
Compare
TODO:
|
Just seen this for the first time, looks good :) |
4c362a7
to
05775f5
Compare
(Removed conflicts, updated |
05775f5
to
3e982ff
Compare
I've reworked the PR according to the discussion (search for 59060 in https://meetbot.fedoraproject.org/ansible-meeting/2019-08-13/ansible_core_public_irc_meeting.2019-08-13-19.00.log.html). I think it should be OK now. |
test/lib/ansible_test/_data/sanity/validate-modules/validate_modules/main.py
Show resolved
Hide resolved
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.
Tested this out and it works as advertised.
Thanks a lot to everyone who helped reviewing this and commented on this (here and during the meetings)! :) |
* add_file_common_args is only of interest on top-level. * Handle undocumented arguments in one place. * Update ignore.txt * Add changelog
* add_file_common_args is only of interest on top-level. * Handle undocumented arguments in one place. * Update ignore.txt * Add changelog
SUMMARY
This improves module sanity checking with regard to option aliases:
This is WIP since I want #58646 to get merged first. This will improve the checks done in there, and will be another big update toignore.txt
(which I haven't done yet because it will need to be redone anyway once #58646 is merged).CC @bcoca @sivel
ISSUE TYPE
COMPONENT NAME
test/sanity/validate-modules/main.py