rodjek / rspec-puppet

RSpec tests for your Puppet manifests
http://rspec-puppet.com
MIT License
362 stars 202 forks source link

manifest_dir seems to not be evaluated #775

Open walkamongus opened 5 years ago

walkamongus commented 5 years ago

I have a manifest directory when I have some global resource settings that apply to select resources in my entire codebase. I have Rspec configured via c.manifest_dir and c.manifest, but when executing a spec test for a class that contains the interesting resources, they do not contain the expected global resource defaults -- as if the manifest_dir is not being evaluated prior to the class.

Debug output shows my class being loaded into rp_env prior to compilation, but no manifest directory.

rodjek commented 4 years ago

What version of Puppet are you testing against? The manifestdir setting was removed in Puppet 4.0