You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm facing some issues after updating to 10.1.1, I have my test configuration like this:
testinfra_hosts = [ "ansible://%s?force_ansible=True" % (x) for x in testinfra.utils.ansible_runner.AnsibleRunner( os.environ["MOLECULE_INVENTORY_FILE"] ).get_hosts("all") ]
but every time I want to execute the tests I receive this message: "got empty parameter set ['_testinfra_host'], function XXXXX"
The workaround for this its to change the variable name to _testinfra_host (that overwrites the same variable on plugin.py), but Im worried about the change of behavior as I'm configuring everything as the documentation says.
Tech stack
platform linux
Python 3.9.11,
pytest-8.2.1,
pluggy-1.5.0
pytest-testinfra-10.1.1
Thanks in advance
The text was updated successfully, but these errors were encountered:
Hey!
I'm facing some issues after updating to 10.1.1, I have my test configuration like this:
testinfra_hosts = [ "ansible://%s?force_ansible=True" % (x) for x in testinfra.utils.ansible_runner.AnsibleRunner( os.environ["MOLECULE_INVENTORY_FILE"] ).get_hosts("all") ]
that is similar to this approach
but every time I want to execute the tests I receive this message:
"got empty parameter set ['_testinfra_host'], function XXXXX"
The workaround for this its to change the variable name to _testinfra_host (that overwrites the same variable on plugin.py), but Im worried about the change of behavior as I'm configuring everything as the documentation says.
Tech stack
platform linux
Python 3.9.11,
pytest-8.2.1,
pluggy-1.5.0
pytest-testinfra-10.1.1
Thanks in advance
The text was updated successfully, but these errors were encountered: