Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
PUP 4.3.2
-
None
-
None
-
-
Puppet Developer Experience
-
1
-
PDE 2017-02-08
-
Bug Fix
-
-
No Action
-
covered by unit tests; more verbose error messages
Description
During rspec tests while migrating from Puppet 3 to Puppet 4, I encountered an error that was non-obvious to me.
24) wiki Set common params should contain Firewall[105 searchd]
|
Failure/Error: it { is_expected.to contain_firewall('105 searchd') }
|
Puppet::ParseErrorWithIssue:
|
Found 2 errors. Giving up in <PATH>/puppet/controlrepo/dist/wiki/spec/fixtures/modules/wiki/manifests/init.pp on node chi-build04.mss.local
|
The error message that I focused on was "Found 2 errors. Giving up in ..." It doesn't say, or show, the errors. Eventually I determined this came from https://github.com/puppetlabs/puppet/blob/master/lib/puppet/pops/issue_reporter.rb#L72 due to some help from Henrik on IRC, at which point I realized I was running "puppet parser validate" against the file instead of "bundle exec puppet parser validate" (the node is still on v3.7 as we're not migrating yet).
I feel an error message such as "Found # errors during parser validation" would be an improvement here. If the actual errors can be floated up to rspec-puppet even better.