1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/tests/unit/plugins/module_utils
Alexei Znamensky d2070277e8
ModuleHelper variables management (#2162)
* added metadata for variables in module helper

* adjustments

* added separate support for tracking changes

* rewrote the diff code

* added integration test for module_helper

* using ansible.module_utils.common.dict_transformations.dict_merge

* improved dependency management

* restore ModuleHelper to base classes of CmdStateModuleHelper

* added assertions to ensure the failing module name appears in the error messages

* added test code for state-based modules

* fixed test name

* renamed class to VarMeta

* small fixes

* fixes from the PR

* fixed VarDict.__set_attr__

* added VarDict.__getitem__()

* added changelog fragment

* adjustments per PR

* ModuleHelper.output is now aware of conflicting variable names

* Update plugins/module_utils/module_helper.py

Co-authored-by: Felix Fontein <felix@fontein.de>

Co-authored-by: Felix Fontein <felix@fontein.de>
2021-04-05 15:19:13 +02:00
..
cloud sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00
hwc sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00
identity Move modules and module_utils unit tests to correct place (#81) 2020-03-31 10:42:38 +02:00
net_tools New module: Add Pritunl VPN user module (net_tools/pritunl/) (#803) 2021-03-21 11:30:16 +01:00
remote_management Migrating DellEMC collections from community.general collections (#1699) 2021-02-01 18:06:58 +01:00
xenserver sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00
__init__.py Move modules and module_utils unit tests to correct place (#81) 2020-03-31 10:42:38 +02:00
conftest.py sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00
test_csv.py New Filter plugin from_csv (#2037) 2021-03-21 13:21:54 +01:00
test_database.py sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00
test_known_hosts.py Move modules and module_utils unit tests to correct place (#81) 2020-03-31 10:42:38 +02:00
test_module_helper.py ModuleHelper variables management (#2162) 2021-04-05 15:19:13 +02:00
test_saslprep.py Move unit test to right place. (#365) 2020-05-19 11:15:43 +02:00
test_utm_utils.py sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00