(#1532) Replace ParserError with Puppet::Error #613
Annotations
2 errors
Run tests:
spec/unit/provider/postgresql_conf/ruby_spec.rb#L45
Puppet::Type::Postgresql_conf::ProviderRuby#exists? raises an error when multiple matching config items are found
Failure/Error: expect { provider.exists? }.to raise_error(Puppet::Error, 'found multiple config items of your_key found, please fix this')
expected Puppet::Error with "found multiple config items of your_key found, please fix this", got #<Puppet::Error: found multiple config items of your_key, please fix this> with backtrace:
# ./lib/puppet/provider/postgresql_conf/ruby.rb:77:in `exists?'
# ./spec/unit/provider/postgresql_conf/ruby_spec.rb:49:in `block (4 levels) in <top (required)>'
# ./spec/unit/provider/postgresql_conf/ruby_spec.rb:49:in `block (3 levels) in <top (required)>'
# ./vendor/bundle/ruby/3.2.0/bin/rspec:25:in `load'
# ./vendor/bundle/ruby/3.2.0/bin/rspec:25:in `<top (required)>'
# /opt/hostedtoolcache/Ruby/3.2.3/x64/lib/ruby/3.2.0/bundler/cli/exec.rb:58:in `load'
# /opt/hostedtoolcache/Ruby/3.2.3/x64/lib/ruby/3.2.0/bundler/cli/exec.rb:58:in `kernel_load'
# /opt/hostedtoolcache/Ruby/3.2.3/x64/lib/ruby/3.2.0/bundler/cli/exec.rb:23:in `run'
# /opt/hostedtoolcache/Ruby/3.2.3/x64/lib/ruby/3.2.0/bundler/cli.rb:492:in `exec'
# /opt/hostedtoolcache/Ruby/3.2.3/x64/lib/ruby/3.2.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
# /opt/hostedtoolcache/Ruby/3.2.3/x64/lib/ruby/3.2.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
# /opt/hostedtoolcache/Ruby/3.2.3/x64/lib/ruby/3.2.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
# /opt/hostedtoolcache/Ruby/3.2.3/x64/lib/ruby/3.2.0/bundler/cli.rb:34:in `dispatch'
# /opt/hostedtoolcache/Ruby/3.2.3/x64/lib/ruby/3.2.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
# /opt/hostedtoolcache/Ruby/3.2.3/x64/lib/ruby/3.2.0/bundler/cli.rb:28:in `start'
# /opt/hostedtoolcache/Ruby/3.2.3/x64/lib/ruby/3.2.0/bundler/friendly_errors.rb:117:in `with_friendly_errors'
# /opt/hostedtoolcache/Ruby/3.2.3/x64/bin/bundle:25:in `load'
# /opt/hostedtoolcache/Ruby/3.2.3/x64/bin/bundle:25:in `<main>'
|
Run tests
Process completed with exit code 1.
|
Loading