use sudo::defaults in rhel9 template #138
Annotations
10 errors
Run tests:
spec/defines/sudo_spec.rb#L33
sudo::conf when creating a sudo entry is expected to contain Sudo::Conf[admins] with priority => 10 and content supplied string
Failure/Error:
is_expected.to contain_sudo__conf('admins').with(
priority: params[:priority],
content: params[:content]
)
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.debian.erb:
Filepath: /home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/puppet-7.30.0/lib/puppet/pops/functions/dispatcher.rb
Line: 39
Detail: 'sudo::defaults' expects no arguments, got 2
(file: /home/runner/work/puppet-sudo/puppet-sudo/spec/fixtures/modules/sudo/manifests/init.pp, line: 209, column: 23) (line: 2) on node fv-az1110-430.web1hnpulnrebejjggulhupmdh.dx.internal.cloudapp.net
|
Run tests:
spec/functions/defaults_spec.rb#L6
sudo::defaults is expected to run sudo::defaults(["mailto", {"value"=>"root"}]) and return "Defaults\tmailto=\"root\"\n"
Failure/Error: is_expected.to run.with_params(['mailto', { 'value' => 'root' }]).and_return("Defaults\tmailto=\"root\"\n")
expected sudo::defaults(["mailto", {"value"=>"root"}]) to have returned "Defaults\tmailto=\"root\"\n" instead of raising ArgumentError('sudo::defaults' expects no arguments, got 1)
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/puppet-7.30.0/lib/puppet/pops/functions/dispatcher.rb:39:in `dispatch'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/puppet-7.30.0/lib/puppet/pops/functions/function.rb:43:in `block in call'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/puppet-7.30.0/lib/puppet/pops/functions/function.rb:42:in `catch'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/puppet-7.30.0/lib/puppet/pops/functions/function.rb:42:in `call'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-puppet-3.0.0/lib/rspec-puppet/example/function_example_group.rb:21:in `block in execute'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/puppet-7.30.0/lib/puppet/context.rb:62:in `override'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/puppet-7.30.0/lib/puppet.rb:289:in `override'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-puppet-3.0.0/lib/rspec-puppet/example/function_example_group.rb:20:in `execute'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-puppet-3.0.0/lib/rspec-puppet/matchers/run.rb:12:in `matches?'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.13.0/lib/rspec/expectations/handler.rb:51:in `block in handle_matcher'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.13.0/lib/rspec/expectations/handler.rb:27:in `with_matcher'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.13.0/lib/rspec/expectations/handler.rb:48:in `handle_matcher'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.13.0/lib/rspec/expectations/expectation_target.rb:65:in `to'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.13.0/lib/rspec/expectations/expectation_target.rb:101:in `to'
/home/runner/work/puppet-sudo/puppet-sudo/spec/functions/defaults_spec.rb:7:in `block (2 levels) in <top (required)>'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:263:in `instance_exec'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:263:in `block in run'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:511:in `block in with_around_and_singleton_context_hooks'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:468:in `block in with_around_example_hooks'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/hooks.rb:486:in `block in run'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/hooks.rb:624:in `run_around_example_hooks_for'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/hooks.rb:486:in `run'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:468:in `with_around_example_hooks'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:511:in `with_around_and_singleton_context_hooks'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/cor
|
Run tests:
spec/functions/defaults_spec.rb#L10
sudo::defaults is expected to run sudo::defaults(["env_reset", nil]) and return "Defaults\tenv_reset\n"
Failure/Error: is_expected.to run.with_params(['env_reset', nil]).and_return("Defaults\tenv_reset\n")
expected sudo::defaults(["env_reset", nil]) to have returned "Defaults\tenv_reset\n" instead of raising ArgumentError('sudo::defaults' expects no arguments, got 1)
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/puppet-7.30.0/lib/puppet/pops/functions/dispatcher.rb:39:in `dispatch'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/puppet-7.30.0/lib/puppet/pops/functions/function.rb:43:in `block in call'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/puppet-7.30.0/lib/puppet/pops/functions/function.rb:42:in `catch'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/puppet-7.30.0/lib/puppet/pops/functions/function.rb:42:in `call'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-puppet-3.0.0/lib/rspec-puppet/example/function_example_group.rb:21:in `block in execute'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/puppet-7.30.0/lib/puppet/context.rb:62:in `override'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/puppet-7.30.0/lib/puppet.rb:289:in `override'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-puppet-3.0.0/lib/rspec-puppet/example/function_example_group.rb:20:in `execute'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-puppet-3.0.0/lib/rspec-puppet/matchers/run.rb:12:in `matches?'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.13.0/lib/rspec/expectations/handler.rb:51:in `block in handle_matcher'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.13.0/lib/rspec/expectations/handler.rb:27:in `with_matcher'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.13.0/lib/rspec/expectations/handler.rb:48:in `handle_matcher'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.13.0/lib/rspec/expectations/expectation_target.rb:65:in `to'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-expectations-3.13.0/lib/rspec/expectations/expectation_target.rb:101:in `to'
/home/runner/work/puppet-sudo/puppet-sudo/spec/functions/defaults_spec.rb:11:in `block (2 levels) in <top (required)>'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:263:in `instance_exec'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:263:in `block in run'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:511:in `block in with_around_and_singleton_context_hooks'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:468:in `block in with_around_example_hooks'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/hooks.rb:486:in `block in run'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/hooks.rb:624:in `run_around_example_hooks_for'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/hooks.rb:486:in `run'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:468:in `with_around_example_hooks'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:511:in `with_around_and_singleton_context_hooks'
/home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:259:in `run'
/home/runner/work/puppet-s
|
Run tests:
spec/defines/sudo_spec.rb#L40
sudo::conf when creating a sudo entry is expected to contain File[10_admins] with ensure => "present", content supplied string, owner => "root", group => "root", path => "/etc/sudoers.d/10_admins" and mode => "0440"
Failure/Error:
is_expected.to contain_file(filename).with(
ensure: 'present',
content: "# This file is managed by Puppet; changes may be overwritten\n%admins ALL=(ALL) NOPASSWD: ALL\n",
owner: 'root',
group: 'root',
path: file_path,
mode: '0440'
)
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.debian.erb:
Filepath: /home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/puppet-7.30.0/lib/puppet/pops/functions/dispatcher.rb
Line: 39
Detail: 'sudo::defaults' expects no arguments, got 2
(file: /home/runner/work/puppet-sudo/puppet-sudo/spec/fixtures/modules/sudo/manifests/init.pp, line: 209, column: 23) (line: 2) on node fv-az1110-430.web1hnpulnrebejjggulhupmdh.dx.internal.cloudapp.net
|
Run tests:
spec/defines/sudo_spec.rb#L51
sudo::conf when creating a sudo entry is expected to contain Exec[sudo-syntax-check for file /etc/sudoers.d/10_admins] with command => "visudo -c || ( rm -f '/etc/sudoers.d/10_admins' && exit 1)" and refreshonly => "true"
Failure/Error:
is_expected.to contain_exec("sudo-syntax-check for file #{params[:sudo_config_dir]}/#{params[:priority]}_#{title}").with(
command: "visudo -c || ( rm -f '#{params[:sudo_config_dir]}/#{params[:priority]}_#{title}' && exit 1)",
refreshonly: 'true'
)
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.debian.erb:
Filepath: /home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/puppet-7.30.0/lib/puppet/pops/functions/dispatcher.rb
Line: 39
Detail: 'sudo::defaults' expects no arguments, got 2
(file: /home/runner/work/puppet-sudo/puppet-sudo/spec/fixtures/modules/sudo/manifests/init.pp, line: 209, column: 23) (line: 2) on node fv-az1110-430.web1hnpulnrebejjggulhupmdh.dx.internal.cloudapp.net
|
Run tests:
spec/defines/sudo_spec.rb#L58
sudo::conf when creating a sudo entry is expected to contain File[10_admins] that notifies Exec[sudo-syntax-check for file /etc/sudoers.d/10_admins]
Failure/Error: it { is_expected.to contain_file(filename).that_notifies("Exec[sudo-syntax-check for file #{params[:sudo_config_dir]}/#{params[:priority]}_#{title}]") }
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.debian.erb:
Filepath: /home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/puppet-7.30.0/lib/puppet/pops/functions/dispatcher.rb
Line: 39
Detail: 'sudo::defaults' expects no arguments, got 2
(file: /home/runner/work/puppet-sudo/puppet-sudo/spec/fixtures/modules/sudo/manifests/init.pp, line: 209, column: 23) (line: 2) on node fv-az1110-430.web1hnpulnrebejjggulhupmdh.dx.internal.cloudapp.net
|
Run tests:
spec/defines/sudo_spec.rb#L59
sudo::conf when creating a sudo entry is expected not to contain File[10_admins] that requires Exec[sudo-syntax-check for file /etc/sudoers.d/10_admins]
Failure/Error: it { is_expected.not_to contain_file(filename).that_requires("Exec[sudo-syntax-check for file #{params[:sudo_config_dir]}/#{params[:priority]}_#{title}]") }
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.debian.erb:
Filepath: /home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/puppet-7.30.0/lib/puppet/pops/functions/dispatcher.rb
Line: 39
Detail: 'sudo::defaults' expects no arguments, got 2
(file: /home/runner/work/puppet-sudo/puppet-sudo/spec/fixtures/modules/sudo/manifests/init.pp, line: 209, column: 23) (line: 2) on node fv-az1110-430.web1hnpulnrebejjggulhupmdh.dx.internal.cloudapp.net
|
Run tests:
spec/defines/sudo_spec.rb#L75
sudo::conf when creating a sudo entry with single number priority is expected to contain Sudo::Conf[admins] with priority => 5 and content supplied string
Failure/Error:
is_expected.to contain_sudo__conf('admins').with(
priority: params[:priority],
content: params[:content]
)
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.debian.erb:
Filepath: /home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/puppet-7.30.0/lib/puppet/pops/functions/dispatcher.rb
Line: 39
Detail: 'sudo::defaults' expects no arguments, got 2
(file: /home/runner/work/puppet-sudo/puppet-sudo/spec/fixtures/modules/sudo/manifests/init.pp, line: 209, column: 23) (line: 2) on node fv-az1110-430.web1hnpulnrebejjggulhupmdh.dx.internal.cloudapp.net
|
Run tests:
spec/defines/sudo_spec.rb#L82
sudo::conf when creating a sudo entry with single number priority is expected to contain File[05_admins] with ensure => "present", content supplied string, owner => "root", group => "root", path => "/etc/sudoers.d/05_admins" and mode => "0440"
Failure/Error:
is_expected.to contain_file(filename).with(
ensure: 'present',
content: "# This file is managed by Puppet; changes may be overwritten\n%admins ALL=(ALL) NOPASSWD: ALL\n",
owner: 'root',
group: 'root',
path: file_path,
mode: '0440'
)
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.debian.erb:
Filepath: /home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/puppet-7.30.0/lib/puppet/pops/functions/dispatcher.rb
Line: 39
Detail: 'sudo::defaults' expects no arguments, got 2
(file: /home/runner/work/puppet-sudo/puppet-sudo/spec/fixtures/modules/sudo/manifests/init.pp, line: 209, column: 23) (line: 2) on node fv-az1110-430.web1hnpulnrebejjggulhupmdh.dx.internal.cloudapp.net
|
Run tests:
spec/defines/sudo_spec.rb#L93
sudo::conf when creating a sudo entry with single number priority is expected to contain Exec[sudo-syntax-check for file /etc/sudoers.d/05_admins] with command => "visudo -c || ( rm -f '/etc/sudoers.d/05_admins' && exit 1)" and refreshonly => "true"
Failure/Error:
is_expected.to contain_exec("sudo-syntax-check for file #{params[:sudo_config_dir]}/0#{params[:priority]}_#{title}").with(
command: "visudo -c || ( rm -f '#{params[:sudo_config_dir]}/0#{params[:priority]}_#{title}' && exit 1)",
refreshonly: 'true'
)
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.debian.erb:
Filepath: /home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/2.7.0/gems/puppet-7.30.0/lib/puppet/pops/functions/dispatcher.rb
Line: 39
Detail: 'sudo::defaults' expects no arguments, got 2
(file: /home/runner/work/puppet-sudo/puppet-sudo/spec/fixtures/modules/sudo/manifests/init.pp, line: 209, column: 23) (line: 2) on node fv-az1110-430.web1hnpulnrebejjggulhupmdh.dx.internal.cloudapp.net
|
The logs for this run have expired and are no longer available.
Loading