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 ?
↧