Books and resources for Test Driven Development for Puppet?

121 views
Skip to first unread message

Alex Scoble

unread,
Mar 24, 2014, 5:24:35 PM3/24/14
to puppet...@googlegroups.com
Hi All,

Was wondering if anyone knew of any good books or resources for learning Test Driven Development of Puppet including puppet-rspec, beaker and Jenkins. Yes, I know that beaker is more for acceptance testing than unit testing, but I still see it as part of the testing tool chain that Puppet pros should ultimately know how to use.

I'm looking for resources that really start with the basics for each subject and then help people ramp up to more advanced usage.

Yes, I know there's this http://puppetlabs.com/blog/test-driven-development-with-puppet and some other blog posts, but they don't really start basic enough or go deep enough.

What I'm looking for are resources that help me build our testing tool chain and also show how to use the tool chain once it's built.

Thanks,

Alex

Alex Scoble

unread,
Mar 26, 2014, 6:22:13 PM3/26/14
to puppet...@googlegroups.com
This seems to be the sort of thing that I'm looking for http://vstone.eu/puppet-modules-in-jenkins/ a good nuts and bolts walk through on using Jenkins to do Puppet syntax and lint checking.

Alex Scoble

unread,
Mar 26, 2014, 6:30:23 PM3/26/14
to puppet...@googlegroups.com
It's kind of annoying that there's a TDD for Chef book from O'Reilly, but not one for Puppet. There's definitely a need for it, in my opinion.


On Monday, March 24, 2014 10:24:35 AM UTC-7, Alex Scoble wrote:

Johan De Wit

unread,
Mar 27, 2014, 8:19:40 AM3/27/14
to puppet...@googlegroups.com
On 26/03/14 19:30, Alex Scoble wrote:
It's kind of annoying that there's a TDD for Chef book from O'Reilly, but not one for Puppet. There's definitely a need for it, in my opinion.

unfortunatly, my rspec is not good enough yet ...  and indeed, i think this is a gap that needs to be filled.

the information is out there somewhere, but hard to find, and some are outdated ...

I still have to check the 'puppetlabs supported modules' in respect of the unit testing, and i hope the tests are done for those modules in a 'consistent' way.

I have seen rspec code for many modules, but every time, it was done in just another way ...

Makes it hard to get started.

And if you do TDD, you just need the rspec thing



m2c







On Monday, March 24, 2014 10:24:35 AM UTC-7, Alex Scoble wrote:
Hi All,

Was wondering if anyone knew of any good books or resources for learning Test Driven Development of Puppet including puppet-rspec, beaker and Jenkins. Yes, I know that beaker is more for acceptance testing than unit testing, but I still see it as part of the testing tool chain that Puppet pros should ultimately know how to use.

I'm looking for resources that really start with the basics for each subject and then help people ramp up to more advanced usage.

Yes, I know there's this http://puppetlabs.com/blog/test-driven-development-with-puppet and some other blog posts, but they don't really start basic enough or go deep enough.

What I'm looking for are resources that help me build our testing tool chain and also show how to use the tool chain once it's built.

Thanks,

Alex
--
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/4e311142-b45c-45b2-a991-1d2e5447a5fd%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-14th-april

Puppet Advanced Training | http://www.open-future.be/puppet-advanced-training-15-till-17th-april

Linux Training | https://www.open-future.be/linux-training-5-till-9th-may

Puppet Introduction Course | https://www.open-future.be/puppet-introduction-course-12th-may

Subscribe to our newsletter: http://eepurl.com/BUG8H


Garrett Honeycutt

unread,
Mar 27, 2014, 9:19:39 AM3/27/14
to puppet...@googlegroups.com
Hi,

Here are my slides[1] from a tutorial I recently gave at Cascadia IT
Conference in Seattle about Test Driven Development with Puppet. Not
sure how great they are on their own, but they at least have some
examples and links to get you started. April 5th I will be doing another
free tutorial session at LOADays[2] in Antwerp. I also teach a two day
Advanced Puppet course[3] that focuses on testing.

[1] -
http://www.slideshare.net/gh/20140307-cascadia-itconftddwithpuppettutorial

[2] - http://loadays.org/

[3] - http://learnpuppet.com/training/

Best regards,
-g

--
Garrett Honeycutt
@learnpuppet
Puppet Training with LearnPuppet.com
Mobile: +1.206.414.8658

Nikola Petrov

unread,
Mar 28, 2014, 4:11:21 PM3/28/14
to puppet...@googlegroups.com
Check out rspec-puppet home page then just get
https://github.com/garethr/puppet-module-skeleton and you should be
ready to go. The thing that was hidden at least for me were the resource
testing types from http://serverspec.org/resource_types.html so look
there too(some of them are used in the skeleton so your setup should be
ready) :)

For the skeleton just run

bundle install
bundle exec guard -c

in one terminal(a second monitor helps) and then start coding in another
window(in the first monitor).

This is basically my setup at the moment for new modules :)

--
Nikola
> --
> 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/b1fd7384-dbb8-49d4-b85f-a39602f1b06a%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages