1
0
mirror of https://github.com/ansible-collections/community.general.git synced 2025-07-29 07:41:16 +03:00

Test helper more (#7421)

* facter: add option to return facts instead of output variables

* Update plugins/modules/facter.py

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

* add output doc

* add changelog frag

* reversed facter.py, created facter_facts.py

* remove chglog fragment for new module

* test helper: add Helper.from_module()

* change case in variable name

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Alexei Znamensky
2023-10-24 10:04:18 +13:00
committed by GitHub
parent bb59962061
commit 3b87f58070
10 changed files with 18 additions and 11 deletions

View File

@ -17,6 +17,6 @@ from ansible_collections.community.general.plugins.modules import puppet
from .helper import Helper
helper = Helper.from_file(puppet.main, "tests/unit/plugins/modules/test_puppet.yaml")
helper = Helper.from_module(puppet)
patch_bin = helper.cmd_fixture
test_module = helper.test_module