--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7007a8e5-df7b-492a-accb-eed09cb12871%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Johan De Wit Open Source Consultant Red Hat Certified Engineer (805008667232363) Puppet Certified Professional 2013/2014 (PCP0000006) _________________________________________________________ Open-Future Phone +32 (0)2/255 70 70 Zavelstraat 72 Fax +32 (0)2/255 70 71 3071 KORTENBERG Mobile +32 (0)474/42 40 73 BELGIUM http://www.open-future.be _________________________________________________________
Upcoming Events:
Puppet Introduction Course | http://www.open-future.be/puppet-introduction-course-13th-october
Puppet Practitioner Training | http://www.open-future.be/puppet-practitioner-former-puppet-advanced-training-14-till-16th-october
Linux Training | http://www.open-future.be/linux-training-20-till-24th-october
Puppet Introduction Course | http://www.open-future.be/puppet-introduction-course-10th-november
Puppet Fundamentals Training | http://www.open-future.be/puppet-fundamentals-training-12-till-14th-november
Subscribe to our newsletter: http://eepurl.com/BUG8H
On Sep 25, 2014 6:02 AM, "Johan De Wit" <Jo...@open-future.be> wrote:
>
> For rspec unit testing, one must keep in mind that you are testing the content of the catalog.
>
For *rspec-puppet* unit testing, that is.
There is also *rspec-puppet-augeas*, but unfortunately it requires a downrev of rspec-puppet until there is a new release of rspec-puppet, which re-enables the interface that -augeas needs. (Which is less painful w/RVM and gemsets.)
r-p-a also suffers from using augeas conditions to test expectations, which makes for a chicken-and-egg situation: if you are not confident with your augeas skills to make the change, you cannot be confident in your verification of the result. (I have not investigated the feasibility of getting the contents of the temp file and using regex or string matches, but it might be possible.)
Wil