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 d22dd5056e
module_helper.py Breakdown (#2393)
* break down of module_helper into smaller pieces, keeping compatibility

* removed abc.ABC (py3 only) from code + fixed reference to vars.py

* multiple changes:

- mh.base - moved more functionalities to ModuleHelperBase
- mh.mixins.(cmd, state) - CmdMixin no longer inherits from ModuleHelperBase
- mh.mixins.deps - DependencyMixin now overrides run() method to test dependency
- mh.mixins.vars - created class VarsMixin
- mh.module_helper - moved functions to base class, added VarsMixin
- module_helper - importing AnsibleModule as well, for backward compatibility in test

* removed unnecessary __all__

* make pylint happy

* PR adjustments + bot config + changelog frag

* Update plugins/module_utils/mh/module_helper.py

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

* Update plugins/module_utils/mh/module_helper.py

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

Co-authored-by: Felix Fontein <felix@fontein.de>
2021-05-11 19:31:10 +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 Allow keycloak modules to take token as parameter for the auth. (#2250) 2021-04-20 13:20:46 +02:00
net_tools New module: Add Pritunl VPN organization module (net_tools/pritunl/) (#804) 2021-04-08 22:37:06 +02: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 module_helper.py Breakdown (#2393) 2021-05-11 19:31:10 +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