Closed StephenSorriaux closed 6 years ago
@StephenSorriaux what version of testinfra are you using?
@retr0h I am using testinfra 1.7.1 in both cases
Hello,
The same for me. we have an incompatibility since last update. The same rror occurs
I'm having the same problem here. My "workaround" was to downgrade ansible to version 2.5.0 instead of using 2.5.1.
Everything is working again using the following versions:
--> Executing Testinfra tests found in /home/test/roles/myrole/molecule/docker/tests/...
============================= test session starts ==============================
platform linux2 -- Python 2.7.12, pytest-3.5.0, py-1.5.3, pluggy-0.6.0
rootdir: /home/test/roles/myrole/molecule/docker, inifile:
plugins: testinfra-1.7.1
collected 1 item
tests/test_default.py . [100%]
=========================== 1 passed in 3.48 seconds ===========================
Yes, I'm currently doing the same thing.
Sorry for the question, but how do you downgrade to Ansible 2.5.0, it seems that it has been removed from apt
?
Thanks ;)
I personally wouldn't mix apt python packages with pip python packages. If you're using Molecule, I suggest going full out on virtualenv and simply install the dependencies with pip. The quickstart should get you going.
Actually I'm still having this issue. https://travis-ci.org/jgeusebroek/ansible-role-backports/jobs/369566362
Am I missing something?
You're using testinfra 1.7.1 and it was fixed in testinfra 1.12.0.
Thanks, I noticed that, but shouldn't the latest testinfra be installed with a pip install molecule?
Collecting testinfra==1.7.1 (from molecule) Using cached https://files.pythonhosted.org/packages/49/1c/3c276b76417553143b1976719c9c7d37a0a6e3d26451dee55177a8098d5a/testinfra-1.7.1-py2.py3-none-any.whl
When installing molecule on a 'clean' machine it also installs 1.7.1. (log)
Thats because Molecule 2.13 has not been released yet, which includes this fix.
That explains it. My bad. I'll just have to wait for release, thanks.
That explains it. My bad. I'll just have to wait for release, thanks.
👍
Issue Type
Molecule and Ansible details
2.5.1
2.12.1 Molecule installation method (one of):
Ansible installation method (one of):
Desired Behavior
Testinfra tests should work fine.
Actual Behaviour (Bug report only)
Launching Testinfra tests trigger the following error:
` ============================= test session starts ============================== platform linux2 -- Python 2.7.12, pytest-3.5.0, py-1.5.3, pluggy-0.6.0 rootdir: /home/stephen/dev/kafka-lib/molecule/kafka_1.0.1, inifile: plugins: testinfra-1.7.1 collected 0 items / 1 errors
` The exact same test with exact same configuration is OK with Ansible 2.5.0 (instead of 2.5.1).