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
patchback[bot] 4cb6f39a80
module_helper.py Breakdown (#2393) (#2492)
* 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>
(cherry picked from commit d22dd5056e)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2021-05-11 20:05:42 +02:00
..
cloud linode_v4: add support for private_ip option. (#2249) 2021-04-18 09:45:26 +02:00
database Remove postgresql content for 2.0.0 (#1355) 2020-11-24 09:01:50 +01:00
identity Keycloak: add realm management (#2155) 2021-04-21 12:42:28 +02:00
messaging Move modules and module_utils unit tests to correct place (#81) 2020-03-31 10:42:38 +02:00
monitoring StatsD Module (#1793) 2021-02-16 11:46:39 +01:00
net_tools nmcli: Compare MAC addresses case insensitively (#2416) (#2425) 2021-05-03 08:17:32 +02:00
notification move conversion of data to json in slack API handling (#1101) 2020-10-19 10:58:14 +03:00
packaging cpanm - revamp module (#2218) 2021-04-18 10:55:47 +02:00
remote_management add new module xcc_redfish_command to manage Lenovo servers using Redfish APIs (#2007) 2021-03-24 15:07:17 +01:00
source_control Bugfix: PyGithub does not support explicit port in base_url (#2204) 2021-04-09 06:00:21 +02:00
storage sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00
system module_helper.py Breakdown (#2393) (#2492) 2021-05-11 20:05:42 +02:00
web_infrastructure Jenkins build module (#745) 2021-03-04 07:46:37 +01: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
utils.py sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00