On Jan 21, 1:17 pm, Matthew Macdonald-Wallace
<li...@truthisfreedom.org.uk> wrote:
> Is there a way to test custom types/providers without deploying them to
> a node?
>
> I'm thinking of something along the lines of "puppet --parseonly" or
> similar.
>
> How do others test what they've written, or do you just deploy to a
> staging environment?

Yes?

I have to admit I'm a bit lazy with writing actual rspec tests. My
usual testing order would be `puppet apply /tmp/test.pp`, `cucumber-
puppet features/catalog/foo.catalog`, then finally running it in a
representative test (then staging) environment. I highly recommend
cucumber-puppet, you should be able to inspect the clients catalog for
resources and values.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to