Skip to content
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
merged 7 commits into from Jul 28, 2020

Conversation

felixfontein
Copy link
Contributor

SUMMARY

Right now, ansible-test sanity --test validate-modules only validates the top-level version_added for modules in ansible-base, and not in collections. Also, if an invalid value for version_added is used for a (sub-)option or (sub-)return value, deprecation-either-date-or-version is returned instead of option-invalid-version-added or return-invalid-version-added.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

ansible-test validate-modules

@ansibot 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
@felixfontein
Copy link
Contributor Author

ready_for_review

@samdoran samdoran removed the needs_triage Needs a first human triage before being processed. label Jul 28, 2020
@sivel sivel merged commit 7e2cc7d into ansible:devel Jul 28, 2020
@felixfontein felixfontein deleted the version_added-schema branch July 28, 2020 15:36
@felixfontein
Copy link
Contributor Author

@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)
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.
@ansible ansible locked and limited conversation to collaborators Aug 25, 2020
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants