ansible/test/lib/ansible_test/_internal
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
..
ci ansible-test local change detection: use --base-branch if specified (#69508) 2020-05-18 13:18:31 -07:00
cloud Add multipart/form-data functionality (#69376) 2020-05-20 15:44:01 -05:00
coverage Report error for coverage 5+ in ansible-test. 2020-03-27 12:29:02 -07:00
integration Update ansible-test handling of delegation paths. (#69056) 2020-04-20 22:04:25 -07:00
provider Fix ansible-test submodule handling. (#68759) 2020-04-08 01:15:49 -07:00
sanity Allow to deprecate options and aliases by date (#68177) 2020-05-26 20:23:56 -04:00
units Fix ansible-test pytest plugin loading. (#62119) 2019-09-10 23:27:05 -07:00
__init__.py
ansible_util.py Add deprecated removed_in_version and deprecated_aliases version tests (#66920) 2020-05-13 13:58:09 -07:00
cache.py
classification.py ansible-test: don't trigger full CI run for changes to changelogs/ and docs/ in collections (#68550) 2020-04-09 02:53:34 -07:00
cli.py ansible-test local change detection: use --base-branch if specified (#69508) 2020-05-18 13:18:31 -07:00
config.py ansible-test local change detection: use --base-branch if specified (#69508) 2020-05-18 13:18:31 -07:00
constants.py
core_ci.py Update ansible-test support for CI providers. 2020-05-14 17:08:30 -07:00
coverage_util.py Code cleanup and refactoring in ansible-test. (#67063) 2020-02-04 11:21:53 -08:00
csharp_import_analysis.py Add relative module_util support for powershell (#68321) 2020-04-01 09:01:18 +10:00
data.py Fix ansible-test submodule handling. (#68759) 2020-04-08 01:15:49 -07:00
delegation.py Update ansible-test support for CI providers. 2020-05-14 17:08:30 -07:00
diff.py
docker_util.py fix ansible-test units to work(ish) under podman (#69462) 2020-05-12 10:46:22 -07:00
encoding.py Code cleanup and refactoring in ansible-test. (#67063) 2020-02-04 11:21:53 -08:00
env.py Update ansible-test support for CI providers. 2020-05-14 17:08:30 -07:00
executor.py Update ansible-test support for CI providers. 2020-05-14 17:08:30 -07:00
git.py Fix ansible-test handling of git submodules. (#65027) 2019-11-19 10:19:03 -08:00
http.py
import_analysis.py Fix ansible-test change detection traceback. 2020-03-27 15:56:02 -07:00
init.py
io.py Add code coverage target analysis to ansible-test. (#67141) 2020-02-05 22:16:15 -08:00
manage_ci.py Update ansible-test handling of delegation paths. (#69056) 2020-04-20 22:04:25 -07:00
metadata.py Update ansible-test support for CI providers. 2020-05-14 17:08:30 -07:00
payload.py Fix ansible-test delegation from pip install. 2020-04-21 09:48:16 -07:00
powershell_import_analysis.py Add relative module_util support for powershell (#68321) 2020-04-01 09:01:18 +10:00
target.py Testing: Add support for CentOS Linux On Power platform (#68130) 2020-04-15 16:22:17 -07:00
test.py Update ansible-test support for CI providers. 2020-05-14 17:08:30 -07:00
thread.py
types.py Code cleanup and refactoring in ansible-test. (#67063) 2020-02-04 11:21:53 -08:00
util.py Update ansible-test support for CI providers. 2020-05-14 17:08:30 -07:00
util_common.py Add relative module_util support for powershell (#68321) 2020-04-01 09:01:18 +10:00
venv.py Fix ansible-test virtualenv real python search. 2019-10-03 17:12:33 -07:00