Anybody else received this or similar error?
What I was able to figure out so far is that:
by adding "require 'puppet' to the spec test my error changes to:
Error converting value for param 'plugindest': Error converting value for param 'libdir': Could not find value for $vardir on node puppet-demo
So not a big improvement. The error probably occurs before the test itself. Because the error is the same even if I delete the tested .pp file.
Any help would be appreciated :-).
Dňa štvrtok, 4. októbra 2012 10:24:48 UTC+2 Jian napísal(-a):
Hello Everyone,
I am fairly new to puppet and I would like to run som unit tests. I hope rspec is the right tool for it. Unfortunately, after setting it up, when I try to execute it I receive the following error:
Failures:
1) helloworld
Failure/Error: it { should include_class('helloworld') }
Puppet::Error:
Error converting value for param 'deviceconfig': Could not find value for $confdir on node puppet-demo
# ./spec/classes/helloworld_spec.rb:8
Thiss error pops up for any test I try.
I wasn't able to find a solution yet. Can you please give me any advice?
Thank you.