I have been revisiting this again lately and still haven't been able to get any 
spec tests working with hiera.  Has anyone else had any luck in the last few 
months?  It is easy to make hiera lookups work if there is a default, but I 
can't seem to write a spec test that provides data to a hiera lookup without a 
default or to override a default.

Thanks,
jl

On Dec 17, 2012, at 10:24 AM, Justin Lambert <jlamb...@infiniteviewtech.com> 
wrote:

> I've been working on getting spec tests on all of my modules and am down to 
> ones that use hiera and don't have any reasonable defaults.  It looks like 
> there is a project on GH (https://github.com/amfranz/rspec-hiera-puppet) that 
> is designed to fill this need, but for the life of me I cannot make it work.  
> FriedBob helped out on the IRC channel some with his solution of including a 
> patch to puppetlabs_spec_helper that was pulled pending further discussion 
> (https://github.com/puppetlabs/puppetlabs_spec_helper/pull/16).
> 
> I've attempted to make a working example using both the basic and advanced 
> methods of rspec-hiera-puppet (I can live with either one) but cannot get 
> them to work.  Does anyone have any experience with this they can lend me a 
> hand?  This doesn't seem like it should be this hard - I have to be missing 
> something easy.
> 
> https://github.com/jlambert121/rspec-hiera-puppet-basic
> https://github.com/jlambert121/rspec-hiera-puppet-advanced
> 
> Thanks,
> jl
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to