On 8/4/15 3:37 PM, Peter Berghold wrote: > Is there a newer set of documents on doing Spec testing of Puppet > modules than this link? > https://puppetlabs.com/blog/the-next-generation-of-puppet-module-testing > > I am running into a brick wall getting this to work so I have to assume > I'm doing something wrong... >
Hi Peter, Take a look at the spec tests[1] in my vim module. It shows how to test for multiple OS's and how to handle parameters and their validation. The module itself is simple in that it only handles three resources and a handful of parameters. Here's a link[2] to a tutorial I gave last year at LOADays in Antwerp. This[3] is the vagrant environment we used, though I'm not confident that it will still work today without some tweaks. [1] - https://github.com/ghoneycutt/puppet-module-vim/blob/master/spec/classes/init_spec.rb [2] - http://www.slideshare.net/gh/20140406-loa-daystddwithpuppettutorial [3] - https://github.com/ghoneycutt/learnpuppet-tdd-vagrant Best regards, -g -- Garrett Honeycutt @learnpuppet Puppet Training with LearnPuppet.com Mobile: +1.206.414.8658 -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/55C23D62.6080406%40garretthoneycutt.com. For more options, visit https://groups.google.com/d/optout.