question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

3.0.2 testinfra not working on freshly initialized role

See original GitHub issue

Issue 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:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ssbarneacommented, Mar 11, 2020

Closing because it was fixed on master, next release will include testinfra inside the container.

1reaction
unglaublicherdudecommented, Mar 4, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found