Hi, On 19 Feb 2014, at 07:44, Johan De Wit <[email protected]> wrote:
> On 02/19/2014 02:03 AM, HPUX_PUPPET wrote: >> >> Just a bit more explanation... >> >> When I was looking for references I was only finding puppet-lint and >> rspec-puppet for testing manifests, but not finding anything for writing the >> spec files to test module functionality or modifications to existing modules >> such as the HPUX user management. >> >> > There is not that much documentation available. > > I did a talk on cfgmgmtcamp.eu about TDD and puppet. Yoiu can find a little > blog at the BPUG website : puppet-be.github.io. (there are some references in > the slides) > > I look mostly at the puppet code for examples for writing rspec files. Some > interesting links I also have to look at : > > http://www.morethanseven.net/2014/01/25/code-coverage-for-puppet-modules/ > http://hajee.github.io/2014/01/18/testing-your-system-installation-with-rspec > > https://github.com/ghoneycutt/puppet-module-nfs/blob/v1.6.2/spec/classes/init_spec.rb#L58-186 > Maybe you want to attend Extending Puppet using Ruby classes (https://puppetlabs.com/services/training/extending-puppet) Besides this I also did a small module with spec examples (https://github.com/tuxmea/tuxmea-stdmodule) hth, Martin -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/259F6EBC-480E-460B-9070-47682B78A344%40gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
