Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 95

rspec-puppet Exec[] resource path setup

$
0
0
Hi, I am trying to use rspec-puppet to perform some testing on the custom modules. However, I'm hitting a tough problem in managing the **Path** attribute in the **Exec** resources. Whilst in real puppet run, I can define the **Global Exec.Path** attribute at **site.pp** file such that I can basically ignore all the path attribute at each Exec resource declaration, I found no way to simulate that global exec path when using rspec-puppet to unit-test my module. rspec-puppet will throw error like *error during compilation: Validation of Exec[xxxxx] failed: '' is not qualified and no path was specified* It's really frustrating.. is it a limitation of rspec-puppet ? how can I workaround that easily such that I can unit test my puppet class easily ?

Viewing all articles
Browse latest Browse all 95

Trending Articles