Re: [Puppet Users] Is it possible to pass extra flags to Puppet via rspec?`

2013-06-29 Thread Amos Shapira
Thanks for the tip, Justin and everyone else who replied. I'll try your suggestion. Cheers, --Amos On 27 June 2013 14:28, Justin Stoller jus...@puppetlabs.com wrote: It's been a while since I jumped into this code and it's late, forgive me if I say something naive inline. On Wed, Jun 26,

Re: [Puppet Users] Is it possible to pass extra flags to Puppet via rspec?`

2013-06-27 Thread Nan Liu
On Wed, Jun 26, 2013 at 9:28 PM, Justin Stoller jus...@puppetlabs.comwrote: In puppetlabs_spec_helper/puppet_spec_helper[1] which was based on a file in Puppet[2] the confdir and vardir are explicitly set to '/dev/null' which causes the modulepath you're seeing in Puppet proper. I believe,

[Puppet Users] Is it possible to pass extra flags to Puppet via rspec?`

2013-06-26 Thread Amos Shapira
Hello, I'm writing my first puppet function rspec test and am having a problem which I don't see how to solve. The function (and the test) involve access to files through the File Server. In order for the function (and the test) to work I need to pass --fileserverconf=fileserver.conf

Re: [Puppet Users] Is it possible to pass extra flags to Puppet via rspec?`

2013-06-26 Thread Wolf Noble
Hi Amos, Here's what I've done: in spec/spec_helper.rb: Puppet.settings[:confdir] = spec/fixtures then in the class I was working on, I made a parameter: class foo( $puppetdir = $settings::confdir ){ … } then in that class's spec test: require 'spec_helper' require

Re: [Puppet Users] Is it possible to pass extra flags to Puppet via rspec?`

2013-06-26 Thread Nan Liu
On Wed, Jun 26, 2013 at 7:23 PM, Amos Shapira amos.shap...@gmail.comwrote: I'm writing my first puppet function rspec test and am having a problem which I don't see how to solve. The function (and the test) involve access to files through the File Server. In order for the function (and the

Re: [Puppet Users] Is it possible to pass extra flags to Puppet via rspec?`

2013-06-26 Thread Justin Stoller
It's been a while since I jumped into this code and it's late, forgive me if I say something naive inline. On Wed, Jun 26, 2013 at 8:14 PM, Nan Liu nan@gmail.com wrote: On Wed, Jun 26, 2013 at 7:23 PM, Amos Shapira amos.shap...@gmail.comwrote: I'm writing my first puppet function rspec