mschuchard / packer-plugin-testinfra Goto Github PK
View Code? Open in Web Editor NEWTestinfra image artifact validation Packer provisioner
License: MIT License
Testinfra image artifact validation Packer provisioner
License: MIT License
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.