rspec-puppet, Puppet 3.0.x and the spec helper

31 views
Skip to first unread message

Jeff McCune

unread,
May 23, 2012, 8:38:11 PM5/23/12
to puppe...@googlegroups.com, Chris Price
It seems like there are some unresolved issues in the master branch of Puppet configuring the system in a suitable way for rspec-puppet.

I'm working on the existing NTP module spec failures and I've made a bit of progress by modifying the job to checkout the master branch of hiera and put it in the $LOAD_PATH via $RUBYLIB.

However, hiera is still trying to load a configuration file from /dev/null/hiera.yaml [1]

It seems like we need to modify either Hiera or Puppet to initialize itself for testing more appropriately.  Is there any existing work I can look at?  stdlib does something similar, but we don't have any rspec-puppet tests in stdlib so I haven't run into this yet.

Chris, what do you think?  It seems like we need to modify puppetlabs_spec_helper to do something with Hiera like we already do with Puppet.


-Jeff

Jeff McCune

unread,
May 23, 2012, 8:52:48 PM5/23/12
to puppe...@googlegroups.com, Chris Price
Nevermind, I think I have a good solution in:


Huzzah for having a TestHelper class in Puppet!

-Jeff

Chris Price

unread,
May 23, 2012, 11:21:33 PM5/23/12
to Jeff McCune, puppe...@googlegroups.com
Sweet!  Glad that worked out.
Reply all
Reply to author
Forward
0 new messages