Manish Sapariya
2014-Aug-29 12:07 UTC
[Puppet Users] puppet rspec with hiera helper, fails with error when class is parameterized
Hi,
I have two classes as posted in this gist.
https://gist.github.com/msapariya/eca9f77c9f560f8a0e57
kp_ls derives from params and defines two variables.
I am using hiera-puppet-helper in my specs to run hiera
related tests.
However the test is failing with
1) kp_ls
Failure/Error: it { should compile }
Puppet::Error:
Error from DataBinding 'hiera' while looking up
'kp_ls::somevar':
FileSystem implementation expected Pathname, got: 'Hash' on node
testhost.example.com
# ./spec/classes/init_spec.rb:17:in `block (2 levels) in <top
(required)>'
If I disable the class parameters, the tests are running fine.
I could not get any clue from code or even googling the issue.
Thanks for any help.
Regards,
Manish
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/7bb2d34f-ec1f-4a9a-be3b-2b4ee1890e03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.