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,
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,
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
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
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
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