Hi Wolf,
On Wed, May 1, 2013 at 11:13 AM, Wolf Noble wrote:
>
>
> I suspect what's going on here, is the class you're testing doesn't have
> the ability to override the $::settings::vardir variable.
> I've found that if I make the relevant variable a parameter to the class
> in question, I can
Hi Simon,
On Tue, Apr 30, 2013 at 12:08 PM, Simon Piette wrote:
> Hi Wolfe,
>
> On Tue, Apr 30, 2013 at 12:05 PM, Wolf Noble wrote:
>
>> Hi Simon,
>> On Apr 29, 2013, at 7:45 PM, Simon Piette
>> wrote:
>>
>> What I've done elsewhere is to make a parameter for, in your case, vardir:
>>
>>
>> (u
Hi Simon,
On Apr 29, 2013, at 23:35, "Simon Piette" wrote:
> Hi all,
>
> Any solution for testing variables that depends on settings will be welcome
What I've done elsewhere is to make a parameter for, in your case, vardir:
(untested, but close)
Class foo($vardir = $::settings::vardir){
Hi Wolfe,
On Tue, Apr 30, 2013 at 12:05 PM, Wolf Noble wrote:
> Hi Simon,
> On Apr 29, 2013, at 7:45 PM, Simon Piette
> wrote:
>
> What I've done elsewhere is to make a parameter for, in your case, vardir:
>
>
> (untested, but close)
>
> Class foo($vardir = $::settings::vardir){
> file { "${va
Hi Simon,
On Apr 29, 2013, at 7:45 PM, Simon Piette
wrote:
> Hi all,
>
> Any solution for testing variables that depends on settings will be welcome.
>
> Thanks,
I sent this last night from another account, but it didn't seem to go through:
What I've done elsewhere is to make a parameter f
Hi all,
Let's say I have this in a manifest:
file { "${::settings::vardir}/files":
ensure => directory
}
And I want to test it in the catalog using:
it { should create_file('/var/lib/puppet/files') }
It won't work because an mktemp directory is made for vardir for each
catalogue. The catalog