validate-modules for plugins: author: required with same conditions as for modules, or optional, or other conditions? #71794
Labels
affects_2.12
bug
This issue/PR relates to a bug.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
test
This PR relates to tests.
SUMMARY
This is not a bug, but a discussion issue for one aspect of #71734 ([WIP] Extend validate-modules to also validate plugins). It provides details on one of the points in ansible/community#560 (comment).
For modules, the
author
field is required to follow a very specific form:ansible/test/lib/ansible_test/_data/sanity/validate-modules/validate_modules/schema.py
Lines 25 to 32 in d63d880
This is not followed by plugins (since they were not validated). Some plugins have no author entry at all, others have unsupported strings (
Ericsson IPOS OAM team
for cliconf plugin community.network.eric_eccli, theansible.builtin.varnames
lookup hasAnsible Core
, ...).I would suggest to use the same rules as for modules, i.e. require the authors field and use the same validation as for modules.
ISSUE TYPE
COMPONENT NAME
ansible-test validate-modules
ANSIBLE VERSION
2.11
bot_skip
The text was updated successfully, but these errors were encountered: