Hi Nan, Thanks for your answer,
On Friday, January 30, 2015 at 5:17:49 PM UTC+1, Nan Liu wrote: > > > Try using one of the following gems: > > https://github.com/Accuity/rspec-puppet-utils > I already know this Gem and I've used it for stubbing functions. I don"t really see how it could help me for my current problem ... > > https://github.com/bobtfish/hiera-puppet-helper > This Gem isn't supposed to be required anylonger because rspec-puppet officially supports hiera lookups in a few steps. Still, since nothing worked for me till now, I've gave it a try and the results could be found here :: https://github.com/riton/rspec-hiera-test-function/tree/hiera-puppet-helper. I've added a dummy puppet class that just does a standard hiera lookup. This test ensures me that standard hiera lookups work fine from puppet classes. They're still failing from a custom puppet function tested with the same "shared_context". I'm still stuck since no method seem to work and enable hiera lookups from a custom puppet function... Cheers Rémi -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/0e466d83-4ff3-407e-8ccd-b48c1d03863b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.