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/modules/system
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
..
interfaces_file Update CI (#1782) 2021-02-11 10:24:58 +01:00
__init__.py Move modules and module_utils unit tests to correct place (#81) 2020-03-31 10:42:38 +02:00
test_java_keystore.py java_keystore: overwrite instead of fail when password or alias does not match (#2262) 2021-04-19 06:59:52 +02:00
test_pamd.py sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00
test_parted.py parted: fix regex for version match and partition size output (#1695) 2021-02-05 07:21:57 +01:00
test_solaris_zone.py solaris_zone: fix zone configuration with python3 (#1082) 2020-10-14 21:18:04 +02:00
test_sysupgrade.py sysupgrade: new module (#341) 2020-08-18 09:10:41 +02:00
test_ufw.py sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00
test_xfconf.py module_helper.py Breakdown (#2393) 2021-05-11 19:31:10 +02:00