Comments (8)
The relevant bit is that the concatenated script that is executed includes some functions
# Check whether a command exists - returns 0 if it does, 1 if it does not
exists() {
...
}
...
The error that comes back is
' bash: -c: line 34: syntax error near unexpected token `{
' bash: -c: line 34: `exists() {
And line 34 correlates to the first function block in the full generated script.
Off to the release notes for Test Kitchen to see what has changed....
from kitchen-puppet.
Awesome, thanks for the heads up!
from kitchen-puppet.
it useful to run with -l debug on the command and then we see the traceback. usualy these issues are simple to fix once we ca see the cause of the issue. the changelog on kichen 1.7.0 doesn't suggest any reason.
from kitchen-puppet.
That didn't give me any other clues other than the full script it was running. If I copy that on to the VM and run it goes through fine. At a guess maybe there is something with the variable interpolation??
The bit of script it complains about is coming from the download helpers block that is appended to the provision script for the puppet install check (https://github.com/test-kitchen/test-kitchen/blob/master/support/download_helpers.sh) But that is probably a red herring and is likely something before that.
I can post the full output tomorrow when I get a chance. to see if anybody else can see something obvious
from kitchen-puppet.
well i cannot tell if the bug is in test-kitchen itself or in the kitchen-puppet plugin. the download_helpers are part of test-kitchen itself. test-kitchen is responsible for uploading the files to the remote server before kitchen-puppet is called the install and converge
from kitchen-puppet.
I tested on test-kitchen 1.7.0 with Centos 7.0 on AWS and couldn't get the problem.
from kitchen-puppet.
Just tested with test-kitchen 1.7.3 on Docker and Vagrant/VB and seems to work. Rolling back to 1.7.0 and I still get the same error as before.
I wonder if there was a transitive dependency that has since been updated that resolved the issue??
On another happy note, the latest beta of Docker for Mac now plays nicely with Test Kitchen, but that is a different topic :)
from kitchen-puppet.
I think we will call it test-kitchen problem if it works on test-kitchen 1.7.3.
test-kitchen are in a bit of bother as they still have 45 outstanding pull requests and 123 open issues.
from kitchen-puppet.
Related Issues (20)
- Passing custom facts to provisioner that has a hash results in garbage values HOT 1
- No example of facter_file HOT 3
- dependency problems HOT 2
- sync environments dir HOT 3
- exported resources/storeconfigs HOT 1
- Don't copy unneeded files when testing a Puppet module HOT 2
- weird interaction with hiera? HOT 1
- Make puppet_coll_remote_path useable with require_puppet_collections == false HOT 4
- Running specific modules by overriding in command line HOT 1
- fixtures for rspec-puppet cause recursive copy during transferring files stage HOT 1
- puppet release package has been removed from repo HOT 2
- faraday gem conflict - how can I resolve this? HOT 2
- Allow test-kitchen 2.0.0 HOT 2
- puppet collections repo is incorrect HOT 1
- Puppet command not found error HOT 2
- Support for hiera_writer_files on different levels
- apt-transport-https missing HOT 1
- nil `basedir` when instantiating R10K::Puppetfile HOT 1
- How could I upgrade ruby version 2.3 inside puppet agent HOT 1
- debug? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kitchen-puppet.