3.0.2 testinfra not working on freshly initialized role
See original GitHub issueIssue Type
- Bug report
Molecule and Ansible details
docker run -v $(pwd):$(pwd) -w $(pwd) quay.io/ansible/molecule:3.0.2 molecule init role --verifier-name testinfra foobar
docker run -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):$(pwd) -w $(pwd) quay.io/ansible/molecule:3.0.2 molecule test
Molecule installation method (one of):
- docker
Ansible installation method (one of):
- docker
Detail any linters or test runners used:
Desired Behavior
The default tests should run without any problems
Actual Behaviour
an error is thrown
ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --connection=ansible --ansible-inventory=/root/.cache/molecule/foobar/default/inventory/ansible_inventory.yml
inifile: None
rootdir: /home/xxx/Downloads/Projects/test/foobar/molecule/default
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:5 (2 by maintainers)
Top Results From Across the Web
testinfra Documentation - Read the Docs
issues /431 for details. This make ansible using testinfra native backends and only works for local, ssh or docker connections.
Read more >Change Log — H2O Sparkling Water 3.38.0.3-1-3.0 ...
SW-2145 - Fix initialization of Sparkling Water JAR in case we call import pysparkling and sc is not yet running. New Feature.
Read more >Changelog — testinfra 7.0.1.dev3+gcd16981.d20221206 ...
See https://github.com/philpep/testinfra/issues/431 for details. This make ansible using testinfra native backends and only works for local, ssh or docker ...
Read more >Change Log — H2O Sparkling Water 3.36.1.2-1 ... - Amazon S3
SW-2692 - Initialize Conda in Release Pipeline ... SW-2671 - Google Storage import test not working ... SW-2536 - Update Spark in Docker...
Read more >Bug List
581193, MAT, Core, mat.core-inbox, NEW, ---, Problems freeing secondary snapshots, Fri 09:19 ... 'Delete' key does not have repeat function, 2022-12-02.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Closing because it was fixed on master, next release will include testinfra inside the container.
Oh. IMHO that’s a bad decision. I guess, for most of the molecule users testinfra is still the default. And it is a really bad user experience, when I can initialize something with your docker image, but the run itself without custom changes just fails.