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
validate-modules: fix version_added validation for top-level, fix error codes #70869
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansibot
added
affects_2.11
bug
This issue/PR relates to a bug.
core_review
In order to be merged, this PR must follow the core review workflow.
docs
This issue/PR relates to or includes documentation.
docsite
This issue/PR relates to the documentation website.
needs_triage
Needs a first human triage before being processed.
support:community
This issue/PR relates to code supported by the Ansible community.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
test
This PR relates to tests.
labels
Jul 24, 2020
ready_for_review |
samdoran
removed
the
needs_triage
Needs a first human triage before being processed.
label
Jul 28, 2020
@sivel thanks for reviewing and merging! |
felixfontein
added a commit
to felixfontein/ansible
that referenced
this pull request
Jul 28, 2020
…or codes (ansible#70869) * Also validate top-level version_added. * Fix error code. * Produce same version_added validation error in schema than in code (and stop returning it twice). * Return correct error codes for invalid version_added for options and return values. * Add changelog. * Fix forgotten closing braket. * Accept 'historical' for some top-level version_added. (cherry picked from commit 7e2cc7d)
This was referenced Jul 28, 2020
nitzmahone
pushed a commit
that referenced
this pull request
Jul 29, 2020
…or codes (#70869) (#70947) * Also validate top-level version_added. * Fix error code. * Produce same version_added validation error in schema than in code (and stop returning it twice). * Return correct error codes for invalid version_added for options and return values. * Add changelog. * Fix forgotten closing braket. * Accept 'historical' for some top-level version_added. (cherry picked from commit 7e2cc7d)
zoredache
pushed a commit
to zoredache/ansible
that referenced
this pull request
Aug 10, 2020
…or codes (ansible#70869) * Also validate top-level version_added. * Fix error code. * Produce same version_added validation error in schema than in code (and stop returning it twice). * Return correct error codes for invalid version_added for options and return values. * Add changelog. * Fix forgotten closing braket. * Accept 'historical' for some top-level version_added.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
affects_2.11
bug
This issue/PR relates to a bug.
core_review
In order to be merged, this PR must follow the core review workflow.
docs
This issue/PR relates to or includes documentation.
docsite
This issue/PR relates to the documentation website.
support:community
This issue/PR relates to code supported by the Ansible community.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
test
This PR relates to tests.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
Right now,
ansible-test sanity --test validate-modules
only validates the top-levelversion_added
for modules in ansible-base, and not in collections. Also, if an invalid value forversion_added
is used for a (sub-)option or (sub-)return value,deprecation-either-date-or-version
is returned instead ofoption-invalid-version-added
orreturn-invalid-version-added
.ISSUE TYPE
COMPONENT NAME
ansible-test validate-modules