On Wednesday, February 20, 2013 7:45:41 AM UTC-6, Justin Lambert wrote: > > 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. > >
Before I updated to puppet 3, I patched my copy of puppetlabs_spec_helper so that it would create things it needed to let me test with hiera. Unfortunately, i have not kept up with my tests and have been unable to make sure they still work on puppet3. It is on my list, and I will give an update once I am able to. > Thanks, > jl > > On Dec 17, 2012, at 10:24 AM, Justin Lambert > <[email protected]<javascript:>> > 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 [email protected]<javascript:> > . > To unsubscribe from this group, send email to > [email protected] <javascript:>. > 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
