Re: [Puppet Users] RSpec test to verify variable/parameter declaration

2012-06-04 Thread Markus Falb
On 24.4.2012 00:49, Tim Sharpe wrote: > So, rspec-puppet can't and won't ever work this way. What it's testing is > the resulting catalogue of Puppet resources that your host executes (the > behaviour of Puppet). Instead of testing that a variable is defined, you > should be testing the resour

Re: [Puppet Users] RSpec test to verify variable/parameter declaration

2012-04-23 Thread Tim Sharpe
So, rspec-puppet can't and won't ever work this way. What it's testing is the resulting catalogue of Puppet resources that your host executes (the behaviour of Puppet). Instead of testing that a variable is defined, you should be testing the resource(s) that those variables control/adjust. Fo

Re: [Puppet Users] RSpec test to verify variable/parameter declaration

2012-04-23 Thread Craig Dunn
On 23/04/2012 16:51, Shantanu wrote: I have a module in which parameterized classes inherit regular (non- parameterized) 'params' class. I am writing RSpec tests for this module and would like to make sure that required variables have been declared in the params class. Also, is it possible to wr