Re: [Puppet Users] Mocking resources/classes in rspec-puppet

2012-03-08 Thread Tim Sharpe
As Jeff said, ideally you wouldn't have any cross-module dependencies, but everyone still does it. There's a couple of ways you can solve this issue at the moment. The first (and my preferred way) is to setup a fixtures directory as described in http://bombasticmonkey.com/2012/03/02/automati

Re: [Puppet Users] Mocking resources/classes in rspec-puppet

2012-03-07 Thread Jeff McCune
On Tue, Mar 6, 2012 at 10:53 PM, R. Tyler Croy wrote: > My module now depends on the puppetlabs/puppet-apt module for supporting > Debian/Ubuntu hosts, doing this however broke all my debian/ubuntu related > rspec-puppet tests. > > Is there a reasonable way to mock out resources (like apt::source

[Puppet Users] Mocking resources/classes in rspec-puppet

2012-03-07 Thread R. Tyler Croy
My module now depends on the puppetlabs/puppet-apt module for supporting Debian/Ubuntu hosts, doing this however broke all my debian/ubuntu related rspec-puppet tests. Is there a reasonable way to mock out resources (like apt::source, etc) to just test that my classes are doing what they should be