diff options
author | Felix Fontein <felix@fontein.de> | 2023-01-13 22:55:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-13 16:55:48 -0500 |
commit | 1a47a21b65d3746a9feeeceea0cf15eaf011efef (patch) | |
tree | 5e767bf0a5a2d553ae81b63c0123229e823d815a /test/integration/targets/argspec/library/argspec.py | |
parent | e38b3e64fd5f9bb6c5ca9462150c89f0932fd2c4 (diff) | |
download | ansible-1a47a21b65d3746a9feeeceea0cf15eaf011efef.tar.gz |
Fix reporting of deprecated arguments for modules. (#79681)
Diffstat (limited to 'test/integration/targets/argspec/library/argspec.py')
-rw-r--r-- | test/integration/targets/argspec/library/argspec.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/integration/targets/argspec/library/argspec.py b/test/integration/targets/argspec/library/argspec.py index 1a1d288d23..2f24bb7492 100644 --- a/test/integration/targets/argspec/library/argspec.py +++ b/test/integration/targets/argspec/library/argspec.py @@ -139,6 +139,35 @@ def main(): }, }, }, + 'deprecation_aliases': { + 'type': 'str', + 'aliases': [ + 'deprecation_aliases_version', + 'deprecation_aliases_date', + ], + 'deprecated_aliases': [ + { + 'name': 'deprecation_aliases_version', + 'version': '2.0.0', + 'collection_name': 'foo.bar', + }, + { + 'name': 'deprecation_aliases_date', + 'date': '2023-01-01', + 'collection_name': 'foo.bar', + }, + ], + }, + 'deprecation_param_version': { + 'type': 'str', + 'removed_in_version': '2.0.0', + 'removed_from_collection': 'foo.bar', + }, + 'deprecation_param_date': { + 'type': 'str', + 'removed_at_date': '2023-01-01', + 'removed_from_collection': 'foo.bar', + }, }, required_if=( ('state', 'present', ('path', 'content'), True), |