diff options
author | Sloane Hertel <19572925+s-hertel@users.noreply.github.com> | 2021-07-14 19:33:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-14 19:33:28 +0200 |
commit | 3b861abce13c541c1fc41e59d631e76d2564582a (patch) | |
tree | c60aa59565deaf77cca243aff3f784b6c08639c4 /test/lib | |
parent | fix option name for parsed (#75229) (diff) | |
download | ansible-3b861abce13c541c1fc41e59d631e76d2564582a.tar.xz ansible-3b861abce13c541c1fc41e59d631e76d2564582a.zip |
add action_groups support to collections (#74039)
* Canonicalize module_defaults actions and action_groups pre-fork and cache them on the play
* Call get_action_args_with_defaults with the resolved FQCN plugin and don't pass the redirect list
* Add validation for action_group metadata and a toggle to disable the warnings
* Handle groups recursively referring to each other
* Remove special-casing for non-fqcn actions in module_defaults groups
* Error for actions and groups in module_defaults that can't be resolved
* Error for fully templated module_defaults
* Add integration tests for action_groups
* Changelog
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/ansible_test/_data/legacy_collection_loader/_collection_finder.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/test/lib/ansible_test/_data/legacy_collection_loader/_collection_finder.py b/test/lib/ansible_test/_data/legacy_collection_loader/_collection_finder.py index 2ac88ca326..060cb32172 100644 --- a/test/lib/ansible_test/_data/legacy_collection_loader/_collection_finder.py +++ b/test/lib/ansible_test/_data/legacy_collection_loader/_collection_finder.py @@ -582,15 +582,6 @@ class _AnsibleCollectionPkgLoader(_AnsibleCollectionPkgLoaderBase): # if redirect.startswith('..'): # redirect = redirect[2:] - action_groups = meta_dict.pop('action_groups', {}) - meta_dict['action_groups'] = {} - for group_name in action_groups: - for action_name in action_groups[group_name]: - if action_name in meta_dict['action_groups']: - meta_dict['action_groups'][action_name].append(group_name) - else: - meta_dict['action_groups'][action_name] = [group_name] - return meta_dict |