rodjek/rspec-puppet — Issue #15: should not require a site.pp
Author: bodepd
Created: 2011-11-15 05:36:19+00:00
State: open

When I try to run my rspec tests on my laptop, I get the following error:

Puppet::Error:
Could not parse for environment production: No file(s) found for import of '/Users/danbode/.puppet/manifests/site.pp' at line 3 on node danbodesmac.hsd1.or.comcast.net.
# /Users/danbode/dev/puppet/lib/puppet/parser/compiler.rb:27:in `compile'
# /Users/danbode/dev/puppet/lib/puppet/indirector/catalog/compiler.rb:77:in `compile'
# /Users/danbode/dev/puppet/lib/puppet/util.rb:185:in `benchmark'
# /Users/danbode/dev/puppet/lib/puppet/indirector/catalog/compiler.rb:75:in `compile'
# /Users/danbode/dev/puppet/lib/puppet/indirector/catalog/compiler.rb:35:in `find'
# /Users/danbode/dev/puppet/lib/puppet/indirector/indirection.rb:189:in `find'
# /Users/danbode/dev/rspec-puppet/lib/rspec-puppet/support.rb:12:in `build_catalog'
# /Users/danbode/dev/rspec-puppet/lib/rspec-puppet/example/class_example_group.rb:51:in `catalogue'
# /Users/danbode/dev/rspec-puppet/lib/rspec-puppet/example/class_example_group.rb:7:in `subject'
# ./ntp_spec.rb:8\

I can easily resolve this error by just creating an empty file