ansible/test/lib/ansible_test/_data
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>
2020-05-26 20:23:56 -04:00
..
cli
completion Update the default-test-container in ansible-test. 2020-05-14 21:24:58 -07:00
injector Code cleanup in ansible-test. 2020-05-15 18:17:11 -07:00
playbooks Internally redirect win modules to collection name (#68317) 2020-03-23 11:14:21 -05:00
pytest/plugins collection routing (#67684) 2020-05-26 09:42:06 -07:00
requirements collection routing (#67684) 2020-05-26 09:42:06 -07:00
sanity Allow to deprecate options and aliases by date (#68177) 2020-05-26 20:23:56 -04:00
setup Testing: Add support for CentOS Linux On Power platform (#68130) 2020-04-15 16:22:17 -07:00
ansible.cfg
collection_detail.py Add deprecated removed_in_version and deprecated_aliases version tests (#66920) 2020-05-13 13:58:09 -07:00
coveragerc
cryptography-constraints.txt Fix ansible-test requirements installation. 2020-03-29 08:46:25 -07:00
inventory
pytest.ini Explicitly set junit_family=xunit1 @ pytest config 2020-01-30 00:05:02 +01:00
versions.py Ignore warnings in ansible-test environment check. 2020-01-13 16:16:55 -08:00
virtualenvcheck.py
yamlcheck.py