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
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
..
ci ansible-test local change detection: use --base-branch if specified (#69508) 4 years ago
cloud Add multipart/form-data functionality (#69376) 4 years ago
coverage Report error for coverage 5+ in ansible-test. 5 years ago
integration Update ansible-test handling of delegation paths. (#69056) 4 years ago
provider Fix ansible-test submodule handling. (#68759) 5 years ago
sanity Allow to deprecate options and aliases by date (#68177) 4 years ago
units Fix ansible-test pytest plugin loading. (#62119) 5 years ago
__init__.py
ansible_util.py Add deprecated removed_in_version and deprecated_aliases version tests (#66920) 4 years ago
cache.py
classification.py ansible-test: don't trigger full CI run for changes to changelogs/ and docs/ in collections (#68550) 5 years ago
cli.py ansible-test local change detection: use --base-branch if specified (#69508) 4 years ago
config.py ansible-test local change detection: use --base-branch if specified (#69508) 4 years ago
constants.py
core_ci.py Update ansible-test support for CI providers. 4 years ago
coverage_util.py Code cleanup and refactoring in ansible-test. (#67063) 5 years ago
csharp_import_analysis.py Add relative module_util support for powershell (#68321) 5 years ago
data.py Fix ansible-test submodule handling. (#68759) 5 years ago
delegation.py Update ansible-test support for CI providers. 4 years ago
diff.py
docker_util.py fix `ansible-test units` to work(ish) under podman (#69462) 4 years ago
encoding.py Code cleanup and refactoring in ansible-test. (#67063) 5 years ago
env.py Update ansible-test support for CI providers. 4 years ago
executor.py Update ansible-test support for CI providers. 4 years ago
git.py Fix ansible-test handling of git submodules. (#65027) 5 years ago
http.py
import_analysis.py Fix ansible-test change detection traceback. 5 years ago
init.py
io.py Add code coverage target analysis to ansible-test. (#67141) 5 years ago
manage_ci.py Update ansible-test handling of delegation paths. (#69056) 4 years ago
metadata.py Update ansible-test support for CI providers. 4 years ago
payload.py Fix ansible-test delegation from pip install. 4 years ago
powershell_import_analysis.py Add relative module_util support for powershell (#68321) 5 years ago
target.py Testing: Add support for CentOS Linux On Power platform (#68130) 5 years ago
test.py Update ansible-test support for CI providers. 4 years ago
thread.py
types.py Code cleanup and refactoring in ansible-test. (#67063) 5 years ago
util.py Update ansible-test support for CI providers. 4 years ago
util_common.py Add relative module_util support for powershell (#68321) 5 years ago
venv.py Fix ansible-test virtualenv real python search. 5 years ago