Code Monkey home page Code Monkey logo

packer-plugin-testinfra's People

Contributors

mschuchard avatar

Watchers

 avatar  avatar  avatar

packer-plugin-testinfra's Issues

Error if no local installation of py.test is available, even if only remote test is to be performed

I am trying to run a testinfra test of a VM only remotely (i.e. inside the VM) using the SSH connector. I have manually configured this in the packerfile by setting the local parameter to false:

  provisioner "testinfra" {
    processes = 1
    sudo = false
    local = false
    pytest_path = "/usr/bin/py.test"
    test_files = ["/tmp/test.py"]
  }

This results in the immediate (i.e. before the VM is created) error message

Error: Failed preparing provisioner-block "testinfra" ""

  on test.pkr.hcl line 250:
  (source code not available)

CreateFile /usr/bin/py.test: The system cannot find the path specified.

If I ommit the pytest_path parameter I get a slightly different error:

exec: "py.test": executable file not found in %PATH%

(I am building a Linux VM on a Windows host, hence the %PATH% part).

I do not have py.test installed on the buildhost and am not able to do so. It also shouldn't be necessary, as I only want to run the tests inside the VM.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.