You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/lib/ansible_test/_internal/sanity
Felix Fontein ea04e0048d
Allow to deprecate options and aliases by date (#68177)
* Allow to deprecate options and aliases by date instead of only by version.

* Update display.deprecate().

* Adjust behavior to conform to tested behavior, extend tests, and improve C# style.

* Parse date and fail on invalid date.

This is mainly to make sure that people start using invalid dates, and we eventually have a mess to clean up.

* C# code: improve validation and update/extend tests.

* Make sure that deprecate() is not called with both date and version.

* Forgot to remove no longer necessary formatting.

* Adjust order of warnings in C# code.

* Adjust unrelated test.

* Fix grammar (and make that test pass).

* Don't parse date, and adjust message to be same as in #67684.

* Sanity tests: disable date in past test.

* Validate-modules: validate ISO 8601 date format.

* Validate-modules: switch schema declaration for deprecated_aliases to improve error messages for invalid dates.

* Use DateTime instead of string for date deprecation.

* Validate that date in deprecated_aliases is actually a DateTime.

* Fix tests.

* Fix rebasing error.

* Adjust error codes for pylint, and add removed_at_date and deprecated_aliases.date checks to validate-modules.

* Make deprecation date in the past error codes optional.

* Make sure not both version and date are specified for AnsibleModule.deprecate() calls.

* Stop using Python 3.7+ API.

* Make sure errors are actually reported. Re-add 'ansible-' prefix.

* Avoid crashing when 'name' isn't there.

* Linting.

* Update lib/ansible/module_utils/csharp/Ansible.Basic.cs

Co-authored-by: Jordan Borean <jborean93@gmail.com>

* Adjust test to latest change.

* Prefer date over version if both end up in Display.deprecated().

Co-authored-by: Jordan Borean <jborean93@gmail.com>
4 years ago
..
__init__.py Code cleanup in ansible-test. 4 years ago
ansible_doc.py Code cleanup and refactoring in ansible-test. (#67063) 5 years ago
bin_symlinks.py Additional ansible-test path fixes. (#60300) 5 years ago
compile.py Relocate ansible-test code. (#60147) 5 years ago
ignores.py Relocate ansible-test code. (#60147) 5 years ago
import.py collection routing (#67684) 4 years ago
integration_aliases.py Fourth batch of incidental integration tests. (#67873) 5 years ago
pep8.py Relocate ansible-test code. (#60147) 5 years ago
pslint.py Relocate ansible-test code. (#60147) 5 years ago
pylint.py Allow to deprecate options and aliases by date (#68177) 4 years ago
rstcheck.py Relocate ansible-test code. (#60147) 5 years ago
sanity_docs.py Relocate ansible-test code. (#60147) 5 years ago
shellcheck.py Relocate ansible-test code. (#60147) 5 years ago
validate_modules.py Allow to deprecate options and aliases by date (#68177) 4 years ago
yamllint.py Change the check_pyyaml() function to return the features of pyyaml that we check 5 years ago