Skip to content

use sudo::defaults in rhel9 template #138

use sudo::defaults in rhel9 template

use sudo::defaults in rhel9 template #138

Triggered via pull request May 13, 2024 14:48
Status Failure
Total duration 3m 5s
Artifacts

ci.yml

on: pull_request
Puppet  /  Static validations
16s
Puppet / Static validations
Matrix: Puppet / acceptance
Matrix: Puppet / unit
Puppet  /  Test suite
0s
Puppet / Test suite
Fit to window
Zoom out
Zoom in

Annotations

200 errors
Puppet / 8 (Ruby 3.2): 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/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/dispatcher.rb Line: 40 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-az1215-377.g4nh0zpvl5iute0urgogs1ja4e.bx.internal.cloudapp.net
Puppet / 8 (Ruby 3.2): 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/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/dispatcher.rb:40:in `dispatch' /home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/function.rb:44:in `block in call' /home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/function.rb:43:in `catch' /home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/function.rb:43:in `call' /home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/3.2.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/3.2.0/gems/puppet-8.6.0/lib/puppet/context.rb:64:in `override' /home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet.rb:288:in `override' /home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/3.2.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/3.2.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/3.2.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/3.2.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/3.2.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/3.2.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/3.2.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/3.2.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/3.2.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/3.2.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/3.2.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/3.2.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/3.2.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/3.2.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/3.2.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/3.2.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/3.2.0/gems/rspec-core-3.13.0/lib/rspec/core/exam
Puppet / 8 (Ruby 3.2): 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/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/dispatcher.rb:40:in `dispatch' /home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/function.rb:44:in `block in call' /home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/function.rb:43:in `catch' /home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/function.rb:43:in `call' /home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/3.2.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/3.2.0/gems/puppet-8.6.0/lib/puppet/context.rb:64:in `override' /home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet.rb:288:in `override' /home/runner/work/puppet-sudo/puppet-sudo/vendor/bundle/ruby/3.2.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/3.2.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/3.2.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/3.2.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/3.2.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/3.2.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/3.2.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/3.2.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/3.2.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/3.2.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/3.2.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/3.2.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/3.2.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/3.2.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/3.2.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/3.2.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/3.2.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:259:in `run' /home/runner/work/puppet-sudo/pu
Puppet / 8 (Ruby 3.2): 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/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/dispatcher.rb Line: 40 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-az1215-377.g4nh0zpvl5iute0urgogs1ja4e.bx.internal.cloudapp.net
Puppet / 8 (Ruby 3.2): 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/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/dispatcher.rb Line: 40 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-az1215-377.g4nh0zpvl5iute0urgogs1ja4e.bx.internal.cloudapp.net
Puppet / 8 (Ruby 3.2): 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/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/dispatcher.rb Line: 40 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-az1215-377.g4nh0zpvl5iute0urgogs1ja4e.bx.internal.cloudapp.net
Puppet / 8 (Ruby 3.2): 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/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/dispatcher.rb Line: 40 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-az1215-377.g4nh0zpvl5iute0urgogs1ja4e.bx.internal.cloudapp.net
Puppet / 8 (Ruby 3.2): 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/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/dispatcher.rb Line: 40 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-az1215-377.g4nh0zpvl5iute0urgogs1ja4e.bx.internal.cloudapp.net
Puppet / 8 (Ruby 3.2): 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/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/dispatcher.rb Line: 40 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-az1215-377.g4nh0zpvl5iute0urgogs1ja4e.bx.internal.cloudapp.net
Puppet / 8 (Ruby 3.2): 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/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/dispatcher.rb Line: 40 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-az1215-377.g4nh0zpvl5iute0urgogs1ja4e.bx.internal.cloudapp.net
Puppet / 7 - CentOS 9: spec/acceptance/class_spec.rb#L8
sudo class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos9-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144935741.pp.NiZ7Vd Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel9.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos9-64-puppet7.example.com
Puppet / 7 - CentOS 9: spec/acceptance/sudo_conf_spec.rb#L8
sudo::conf class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos9-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144937363.pp.cgcjJd Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel9.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos9-64-puppet7.example.com
Puppet / 7 - CentOS 9: spec/acceptance/sudo_conf_spec.rb#L45
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" stdout is expected to match /Hello World/ Failure/Error: its(:stdout) { is_expected.to match %r{Hello World} } expected "" to match /Hello World/ Diff: @@ -1 +1 @@ -/Hello World/ +""
Puppet / 7 - CentOS 9: spec/acceptance/sudo_conf_spec.rb#L46
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 7 - CentOS 9: spec/acceptance/sudo_conf_spec.rb#L50
sudo::conf class with default parameters Command "su - nosudoguy -c 'sudo echo Hello World'" stderr is expected to match /no tty present and no askpass program specified|a terminal is required to read the password/ Failure/Error: its(:stderr) { is_expected.to match %r{no tty present and no askpass program specified|a terminal is required to read the password} } expected "su: user nosudoguy does not exist or the user entry does not contain all the required fields\n" to match /no tty present and no askpass program specified|a terminal is required to read the password/ Diff: @@ -1 +1 @@ -/no tty present and no askpass program specified|a terminal is required to read the password/ +su: user nosudoguy does not exist or the user entry does not contain all the required fields
Puppet / 7 - CentOS 9: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and prefix set to puppet_ specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos9-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144939029.pp.cfmUbv Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel9.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos9-64-puppet7.example.com
Puppet / 7 - CentOS 9: spec/acceptance/sudo_conf_spec.rb#L91
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to be file Failure/Error: it { is_expected.to be_file } expected `File "/etc/sudoers.d/puppet_10_janedoe_nopasswd".file?` to be truthy, got false
Puppet / 7 - CentOS 9: spec/acceptance/sudo_conf_spec.rb#L92
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to contain "janedoe ALL=(ALL) NOPASSWD: ALL" Failure/Error: it { is_expected.to contain 'janedoe ALL=(ALL) NOPASSWD: ALL' } expected File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" to contain "janedoe ALL=(ALL) NOPASSWD: ALL"
Puppet / 7 - CentOS 9: spec/acceptance/sudo_conf_spec.rb#L116
sudo::conf class with ignore and prefix set to puppet_ specified without managed file without a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos9-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144941949.pp.4PlGvs Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel9.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos9-64-puppet7.example.com
Puppet / 7 - Ubuntu 22.04: spec/acceptance/class_spec.rb#L8
sudo class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu2204-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144936275.pp.kZIhQp Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.ubuntu.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node ubuntu2204-64-puppet7.example.com
Puppet / 7 - CentOS 9: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and suffix set to _puppet specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos9-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144943709.pp.ypXFxH Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel9.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos9-64-puppet7.example.com
Puppet / 7 - Ubuntu 22.04: spec/acceptance/sudo_conf_spec.rb#L8
sudo::conf class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu2204-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144937822.pp.eV1pUR Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.ubuntu.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node ubuntu2204-64-puppet7.example.com
Puppet / 7 - Ubuntu 22.04: spec/acceptance/sudo_conf_spec.rb#L45
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" stdout is expected to match /Hello World/ Failure/Error: its(:stdout) { is_expected.to match %r{Hello World} } expected "" to match /Hello World/ Diff: @@ -1 +1 @@ -/Hello World/ +""
Puppet / 7 - Ubuntu 22.04: spec/acceptance/sudo_conf_spec.rb#L46
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 7 - Ubuntu 22.04: spec/acceptance/sudo_conf_spec.rb#L50
sudo::conf class with default parameters Command "su - nosudoguy -c 'sudo echo Hello World'" stderr is expected to match /no tty present and no askpass program specified|a terminal is required to read the password/ Failure/Error: its(:stderr) { is_expected.to match %r{no tty present and no askpass program specified|a terminal is required to read the password} } expected "su: user nosudoguy does not exist or the user entry does not contain all the required fields\n" to match /no tty present and no askpass program specified|a terminal is required to read the password/ Diff: @@ -1 +1 @@ -/no tty present and no askpass program specified|a terminal is required to read the password/ +su: user nosudoguy does not exist or the user entry does not contain all the required fields
Puppet / 7 - Ubuntu 22.04: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and prefix set to puppet_ specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu2204-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144939441.pp.Et6UF6 Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.ubuntu.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node ubuntu2204-64-puppet7.example.com
Puppet / 7 - Ubuntu 22.04: spec/acceptance/sudo_conf_spec.rb#L67
sudo::conf class with ignore and prefix set to puppet_ specified managed file Command "touch /etc/sudoers.d/file-from-rpm" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 7 - Ubuntu 22.04: spec/acceptance/sudo_conf_spec.rb#L71
sudo::conf class with ignore and prefix set to puppet_ specified managed file Command "chmod 0440 /etc/sudoers.d/file-from-rpm" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 7 - Ubuntu 22.04: spec/acceptance/sudo_conf_spec.rb#L91
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to be file Failure/Error: it { is_expected.to be_file } expected `File "/etc/sudoers.d/puppet_10_janedoe_nopasswd".file?` to be truthy, got false
Puppet / 7 - Ubuntu 22.04: spec/acceptance/sudo_conf_spec.rb#L92
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to contain "janedoe ALL=(ALL) NOPASSWD: ALL" Failure/Error: it { is_expected.to contain 'janedoe ALL=(ALL) NOPASSWD: ALL' } expected File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" to contain "janedoe ALL=(ALL) NOPASSWD: ALL"
Puppet / 8 - CentOS 7: spec/acceptance/class_spec.rb#L8
sudo class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos7-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144935466.pp.p2a0ot Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel7.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos7-64-puppet8.example.com
Puppet / 8 - CentOS 7: spec/acceptance/sudo_conf_spec.rb#L8
sudo::conf class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos7-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144937145.pp.OxgoTc Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel7.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos7-64-puppet8.example.com
Puppet / 8 - CentOS 7: spec/acceptance/sudo_conf_spec.rb#L45
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" stdout is expected to match /Hello World/ Failure/Error: its(:stdout) { is_expected.to match %r{Hello World} } expected "" to match /Hello World/ Diff: @@ -1 +1 @@ -/Hello World/ +""
Puppet / 8 - CentOS 7: spec/acceptance/sudo_conf_spec.rb#L46
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 8 - CentOS 7: spec/acceptance/sudo_conf_spec.rb#L50
sudo::conf class with default parameters Command "su - nosudoguy -c 'sudo echo Hello World'" stderr is expected to match /no tty present and no askpass program specified|a terminal is required to read the password/ Failure/Error: its(:stderr) { is_expected.to match %r{no tty present and no askpass program specified|a terminal is required to read the password} } expected "su: user nosudoguy does not exist\n" to match /no tty present and no askpass program specified|a terminal is required to read the password/ Diff: @@ -1 +1 @@ -/no tty present and no askpass program specified|a terminal is required to read the password/ +su: user nosudoguy does not exist
Puppet / 8 - CentOS 7: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and prefix set to puppet_ specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos7-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144939006.pp.pCNVTo Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel7.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos7-64-puppet8.example.com
Puppet / 8 - CentOS 7: spec/acceptance/sudo_conf_spec.rb#L91
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to be file Failure/Error: it { is_expected.to be_file } expected `File "/etc/sudoers.d/puppet_10_janedoe_nopasswd".file?` to be truthy, got false
Puppet / 8 - CentOS 7: spec/acceptance/sudo_conf_spec.rb#L92
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to contain "janedoe ALL=(ALL) NOPASSWD: ALL" Failure/Error: it { is_expected.to contain 'janedoe ALL=(ALL) NOPASSWD: ALL' } expected File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" to contain "janedoe ALL=(ALL) NOPASSWD: ALL"
Puppet / 8 - CentOS 7: spec/acceptance/sudo_conf_spec.rb#L116
sudo::conf class with ignore and prefix set to puppet_ specified without managed file without a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos7-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144941335.pp.eluu64 Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel7.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos7-64-puppet8.example.com
Puppet / 8 - CentOS 7: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and suffix set to _puppet specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos7-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144943223.pp.UdO19T Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel7.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos7-64-puppet8.example.com
Puppet / 7 - Debian 11: spec/acceptance/class_spec.rb#L8
sudo class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'debian11-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144937407.pp.7UxLZj Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.debian.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node debian11-64-puppet7.example.com
Puppet / 7 - CentOS 7: spec/acceptance/class_spec.rb#L8
sudo class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos7-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144938447.pp.SLSMWB Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel7.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos7-64-puppet7.example.com
Puppet / 7 - Debian 11: spec/acceptance/sudo_conf_spec.rb#L8
sudo::conf class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'debian11-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144938974.pp.GzrQxb Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.debian.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node debian11-64-puppet7.example.com
Puppet / 7 - Debian 11: spec/acceptance/sudo_conf_spec.rb#L45
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" stdout is expected to match /Hello World/ Failure/Error: its(:stdout) { is_expected.to match %r{Hello World} } expected "" to match /Hello World/ Diff: @@ -1 +1 @@ -/Hello World/ +""
Puppet / 7 - CentOS 7: spec/acceptance/sudo_conf_spec.rb#L8
sudo::conf class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos7-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144939989.pp.GVDAsV Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel7.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos7-64-puppet7.example.com
Puppet / 7 - Debian 11: spec/acceptance/sudo_conf_spec.rb#L46
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 7 - CentOS 7: spec/acceptance/sudo_conf_spec.rb#L45
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" stdout is expected to match /Hello World/ Failure/Error: its(:stdout) { is_expected.to match %r{Hello World} } expected "" to match /Hello World/ Diff: @@ -1 +1 @@ -/Hello World/ +""
Puppet / 7 - Debian 11: spec/acceptance/sudo_conf_spec.rb#L50
sudo::conf class with default parameters Command "su - nosudoguy -c 'sudo echo Hello World'" stderr is expected to match /no tty present and no askpass program specified|a terminal is required to read the password/ Failure/Error: its(:stderr) { is_expected.to match %r{no tty present and no askpass program specified|a terminal is required to read the password} } expected "su: user nosudoguy does not exist or the user entry does not contain all the required fields\n" to match /no tty present and no askpass program specified|a terminal is required to read the password/ Diff: @@ -1 +1 @@ -/no tty present and no askpass program specified|a terminal is required to read the password/ +su: user nosudoguy does not exist or the user entry does not contain all the required fields
Puppet / 7 - CentOS 7: spec/acceptance/sudo_conf_spec.rb#L46
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 7 - Debian 11: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and prefix set to puppet_ specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'debian11-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144940645.pp.EPklFB Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.debian.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node debian11-64-puppet7.example.com
Puppet / 7 - CentOS 7: spec/acceptance/sudo_conf_spec.rb#L50
sudo::conf class with default parameters Command "su - nosudoguy -c 'sudo echo Hello World'" stderr is expected to match /no tty present and no askpass program specified|a terminal is required to read the password/ Failure/Error: its(:stderr) { is_expected.to match %r{no tty present and no askpass program specified|a terminal is required to read the password} } expected "su: user nosudoguy does not exist\n" to match /no tty present and no askpass program specified|a terminal is required to read the password/ Diff: @@ -1 +1 @@ -/no tty present and no askpass program specified|a terminal is required to read the password/ +su: user nosudoguy does not exist
Puppet / 7 - Debian 11: spec/acceptance/sudo_conf_spec.rb#L67
sudo::conf class with ignore and prefix set to puppet_ specified managed file Command "touch /etc/sudoers.d/file-from-rpm" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 7 - CentOS 7: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and prefix set to puppet_ specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos7-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144941629.pp.n2XKiy Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel7.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos7-64-puppet7.example.com
Puppet / 7 - Debian 11: spec/acceptance/sudo_conf_spec.rb#L71
sudo::conf class with ignore and prefix set to puppet_ specified managed file Command "chmod 0440 /etc/sudoers.d/file-from-rpm" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 7 - CentOS 7: spec/acceptance/sudo_conf_spec.rb#L91
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to be file Failure/Error: it { is_expected.to be_file } expected `File "/etc/sudoers.d/puppet_10_janedoe_nopasswd".file?` to be truthy, got false
Puppet / 7 - Debian 11: spec/acceptance/sudo_conf_spec.rb#L91
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to be file Failure/Error: it { is_expected.to be_file } expected `File "/etc/sudoers.d/puppet_10_janedoe_nopasswd".file?` to be truthy, got false
Puppet / 7 - CentOS 7: spec/acceptance/sudo_conf_spec.rb#L92
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to contain "janedoe ALL=(ALL) NOPASSWD: ALL" Failure/Error: it { is_expected.to contain 'janedoe ALL=(ALL) NOPASSWD: ALL' } expected File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" to contain "janedoe ALL=(ALL) NOPASSWD: ALL"
Puppet / 7 - Debian 11: spec/acceptance/sudo_conf_spec.rb#L92
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to contain "janedoe ALL=(ALL) NOPASSWD: ALL" Failure/Error: it { is_expected.to contain 'janedoe ALL=(ALL) NOPASSWD: ALL' } expected File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" to contain "janedoe ALL=(ALL) NOPASSWD: ALL"
Puppet / 7 - CentOS 7: spec/acceptance/sudo_conf_spec.rb#L116
sudo::conf class with ignore and prefix set to puppet_ specified without managed file without a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos7-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144943779.pp.zwLNNq Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel7.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos7-64-puppet7.example.com
Puppet / 7 - CentOS 7: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and suffix set to _puppet specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos7-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144945463.pp.pEO2Ou Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel7.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos7-64-puppet7.example.com
Puppet / 7 - Debian 10: spec/acceptance/class_spec.rb#L8
sudo class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'debian10-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144938393.pp.8GouVE Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.debian.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node debian10-64-puppet7.example.com
Puppet / 7 - Debian 10: spec/acceptance/sudo_conf_spec.rb#L8
sudo::conf class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'debian10-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144939942.pp.YcSDio Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.debian.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node debian10-64-puppet7.example.com
Puppet / 7 - Debian 10: spec/acceptance/sudo_conf_spec.rb#L45
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" stdout is expected to match /Hello World/ Failure/Error: its(:stdout) { is_expected.to match %r{Hello World} } expected "" to match /Hello World/ Diff: @@ -1 +1 @@ -/Hello World/ +""
Puppet / 7 - Debian 10: spec/acceptance/sudo_conf_spec.rb#L46
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 7 - Debian 10: spec/acceptance/sudo_conf_spec.rb#L50
sudo::conf class with default parameters Command "su - nosudoguy -c 'sudo echo Hello World'" stderr is expected to match /no tty present and no askpass program specified|a terminal is required to read the password/ Failure/Error: its(:stderr) { is_expected.to match %r{no tty present and no askpass program specified|a terminal is required to read the password} } expected "su: user nosudoguy does not exist\n" to match /no tty present and no askpass program specified|a terminal is required to read the password/ Diff: @@ -1 +1 @@ -/no tty present and no askpass program specified|a terminal is required to read the password/ +su: user nosudoguy does not exist
Puppet / 7 - Debian 10: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and prefix set to puppet_ specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'debian10-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144941536.pp.KUuXUS Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.debian.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node debian10-64-puppet7.example.com
Puppet / 7 - Debian 10: spec/acceptance/sudo_conf_spec.rb#L67
sudo::conf class with ignore and prefix set to puppet_ specified managed file Command "touch /etc/sudoers.d/file-from-rpm" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 7 - Debian 10: spec/acceptance/sudo_conf_spec.rb#L71
sudo::conf class with ignore and prefix set to puppet_ specified managed file Command "chmod 0440 /etc/sudoers.d/file-from-rpm" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 7 - Debian 10: spec/acceptance/sudo_conf_spec.rb#L91
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to be file Failure/Error: it { is_expected.to be_file } expected `File "/etc/sudoers.d/puppet_10_janedoe_nopasswd".file?` to be truthy, got false
Puppet / 7 - Debian 10: spec/acceptance/sudo_conf_spec.rb#L92
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to contain "janedoe ALL=(ALL) NOPASSWD: ALL" Failure/Error: it { is_expected.to contain 'janedoe ALL=(ALL) NOPASSWD: ALL' } expected File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" to contain "janedoe ALL=(ALL) NOPASSWD: ALL"
Puppet / 7 - OracleLinux 7: spec/acceptance/class_spec.rb#L8
sudo class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144939683.pp.wdbLbv Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel7.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node oracle7-64-puppet7.example.com
Puppet / 7 - OracleLinux 7: spec/acceptance/sudo_conf_spec.rb#L8
sudo::conf class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144941246.pp.dr9al8 Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel7.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node oracle7-64-puppet7.example.com
Puppet / 7 - OracleLinux 7: spec/acceptance/sudo_conf_spec.rb#L45
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" stdout is expected to match /Hello World/ Failure/Error: its(:stdout) { is_expected.to match %r{Hello World} } expected "" to match /Hello World/ Diff: @@ -1 +1 @@ -/Hello World/ +""
Puppet / 7 - OracleLinux 7: spec/acceptance/sudo_conf_spec.rb#L46
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 7 - OracleLinux 7: spec/acceptance/sudo_conf_spec.rb#L50
sudo::conf class with default parameters Command "su - nosudoguy -c 'sudo echo Hello World'" stderr is expected to match /no tty present and no askpass program specified|a terminal is required to read the password/ Failure/Error: its(:stderr) { is_expected.to match %r{no tty present and no askpass program specified|a terminal is required to read the password} } expected "su: user nosudoguy does not exist\n" to match /no tty present and no askpass program specified|a terminal is required to read the password/ Diff: @@ -1 +1 @@ -/no tty present and no askpass program specified|a terminal is required to read the password/ +su: user nosudoguy does not exist
Puppet / 7 - OracleLinux 7: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and prefix set to puppet_ specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144942919.pp.9NU4o2 Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel7.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node oracle7-64-puppet7.example.com
Puppet / 7 - OracleLinux 7: spec/acceptance/sudo_conf_spec.rb#L91
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to be file Failure/Error: it { is_expected.to be_file } expected `File "/etc/sudoers.d/puppet_10_janedoe_nopasswd".file?` to be truthy, got false
Puppet / 7 - OracleLinux 7: spec/acceptance/sudo_conf_spec.rb#L92
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to contain "janedoe ALL=(ALL) NOPASSWD: ALL" Failure/Error: it { is_expected.to contain 'janedoe ALL=(ALL) NOPASSWD: ALL' } expected File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" to contain "janedoe ALL=(ALL) NOPASSWD: ALL"
Puppet / 7 - OracleLinux 7: spec/acceptance/sudo_conf_spec.rb#L116
sudo::conf class with ignore and prefix set to puppet_ specified without managed file without a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144945185.pp.bcz8EK Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel7.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node oracle7-64-puppet7.example.com
Puppet / 7 - OracleLinux 7: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and suffix set to _puppet specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144946912.pp.ebyW8G Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel7.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node oracle7-64-puppet7.example.com
Puppet / 8 - OracleLinux 7: spec/acceptance/class_spec.rb#L8
sudo class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144939493.pp.huhq0h Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel7.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node oracle7-64-puppet8.example.com
Puppet / 8 - OracleLinux 7: spec/acceptance/sudo_conf_spec.rb#L8
sudo::conf class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144941271.pp.x4DJZT Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel7.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node oracle7-64-puppet8.example.com
Puppet / 8 - OracleLinux 7: spec/acceptance/sudo_conf_spec.rb#L45
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" stdout is expected to match /Hello World/ Failure/Error: its(:stdout) { is_expected.to match %r{Hello World} } expected "" to match /Hello World/ Diff: @@ -1 +1 @@ -/Hello World/ +""
Puppet / 8 - OracleLinux 7: spec/acceptance/sudo_conf_spec.rb#L46
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 8 - OracleLinux 7: spec/acceptance/sudo_conf_spec.rb#L50
sudo::conf class with default parameters Command "su - nosudoguy -c 'sudo echo Hello World'" stderr is expected to match /no tty present and no askpass program specified|a terminal is required to read the password/ Failure/Error: its(:stderr) { is_expected.to match %r{no tty present and no askpass program specified|a terminal is required to read the password} } expected "su: user nosudoguy does not exist\n" to match /no tty present and no askpass program specified|a terminal is required to read the password/ Diff: @@ -1 +1 @@ -/no tty present and no askpass program specified|a terminal is required to read the password/ +su: user nosudoguy does not exist
Puppet / 8 - OracleLinux 7: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and prefix set to puppet_ specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144943199.pp.CYvUgF Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel7.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node oracle7-64-puppet8.example.com
Puppet / 7 (Ruby 2.7): 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
Puppet / 8 - OracleLinux 7: spec/acceptance/sudo_conf_spec.rb#L91
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to be file Failure/Error: it { is_expected.to be_file } expected `File "/etc/sudoers.d/puppet_10_janedoe_nopasswd".file?` to be truthy, got false
Puppet / 7 (Ruby 2.7): 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
Puppet / 7 (Ruby 2.7): 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
Puppet / 8 - OracleLinux 7: spec/acceptance/sudo_conf_spec.rb#L92
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to contain "janedoe ALL=(ALL) NOPASSWD: ALL" Failure/Error: it { is_expected.to contain 'janedoe ALL=(ALL) NOPASSWD: ALL' } expected File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" to contain "janedoe ALL=(ALL) NOPASSWD: ALL"
Puppet / 7 (Ruby 2.7): 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
Puppet / 8 - OracleLinux 7: spec/acceptance/sudo_conf_spec.rb#L116
sudo::conf class with ignore and prefix set to puppet_ specified without managed file without a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144945709.pp.7tYbQS Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel7.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node oracle7-64-puppet8.example.com
Puppet / 7 (Ruby 2.7): 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
Puppet / 8 - OracleLinux 7: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and suffix set to _puppet specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144947741.pp.G1BpOa Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel7.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node oracle7-64-puppet8.example.com
Puppet / 7 (Ruby 2.7): 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
Puppet / 7 (Ruby 2.7): 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
Puppet / 7 (Ruby 2.7): 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
Puppet / 7 (Ruby 2.7): 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
Puppet / 7 (Ruby 2.7): 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
Puppet / 7 - Ubuntu 20.04: spec/acceptance/class_spec.rb#L8
sudo class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu2004-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144941952.pp.yfNLre Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.ubuntu.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node ubuntu2004-64-puppet7.example.com
Puppet / 7 - Ubuntu 20.04: spec/acceptance/sudo_conf_spec.rb#L8
sudo::conf class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu2004-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144943464.pp.vxsNdt Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.ubuntu.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node ubuntu2004-64-puppet7.example.com
Puppet / 7 - Ubuntu 20.04: spec/acceptance/sudo_conf_spec.rb#L45
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" stdout is expected to match /Hello World/ Failure/Error: its(:stdout) { is_expected.to match %r{Hello World} } expected "" to match /Hello World/ Diff: @@ -1 +1 @@ -/Hello World/ +""
Puppet / 7 - Ubuntu 20.04: spec/acceptance/sudo_conf_spec.rb#L46
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 7 - Ubuntu 20.04: spec/acceptance/sudo_conf_spec.rb#L50
sudo::conf class with default parameters Command "su - nosudoguy -c 'sudo echo Hello World'" stderr is expected to match /no tty present and no askpass program specified|a terminal is required to read the password/ Failure/Error: its(:stderr) { is_expected.to match %r{no tty present and no askpass program specified|a terminal is required to read the password} } expected "su: user nosudoguy does not exist\n" to match /no tty present and no askpass program specified|a terminal is required to read the password/ Diff: @@ -1 +1 @@ -/no tty present and no askpass program specified|a terminal is required to read the password/ +su: user nosudoguy does not exist
Puppet / 7 - Ubuntu 20.04: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and prefix set to puppet_ specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu2004-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144945046.pp.dMbG92 Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.ubuntu.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node ubuntu2004-64-puppet7.example.com
Puppet / 7 - Ubuntu 20.04: spec/acceptance/sudo_conf_spec.rb#L67
sudo::conf class with ignore and prefix set to puppet_ specified managed file Command "touch /etc/sudoers.d/file-from-rpm" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 7 - Ubuntu 20.04: spec/acceptance/sudo_conf_spec.rb#L71
sudo::conf class with ignore and prefix set to puppet_ specified managed file Command "chmod 0440 /etc/sudoers.d/file-from-rpm" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 7 - Ubuntu 20.04: spec/acceptance/sudo_conf_spec.rb#L91
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to be file Failure/Error: it { is_expected.to be_file } expected `File "/etc/sudoers.d/puppet_10_janedoe_nopasswd".file?` to be truthy, got false
Puppet / 7 - Ubuntu 20.04: spec/acceptance/sudo_conf_spec.rb#L92
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to contain "janedoe ALL=(ALL) NOPASSWD: ALL" Failure/Error: it { is_expected.to contain 'janedoe ALL=(ALL) NOPASSWD: ALL' } expected File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" to contain "janedoe ALL=(ALL) NOPASSWD: ALL"
Puppet / 8 - Debian 11: spec/acceptance/class_spec.rb#L8
sudo class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'debian11-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144941594.pp.9AUHj1 Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.debian.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node debian11-64-puppet8.example.com
Puppet / 8 - Debian 11: spec/acceptance/sudo_conf_spec.rb#L8
sudo::conf class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'debian11-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144943232.pp.G4z8Qu Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.debian.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node debian11-64-puppet8.example.com
Puppet / 8 - Debian 11: spec/acceptance/sudo_conf_spec.rb#L45
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" stdout is expected to match /Hello World/ Failure/Error: its(:stdout) { is_expected.to match %r{Hello World} } expected "" to match /Hello World/ Diff: @@ -1 +1 @@ -/Hello World/ +""
Puppet / 8 - Debian 11: spec/acceptance/sudo_conf_spec.rb#L46
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 8 - Debian 11: spec/acceptance/sudo_conf_spec.rb#L50
sudo::conf class with default parameters Command "su - nosudoguy -c 'sudo echo Hello World'" stderr is expected to match /no tty present and no askpass program specified|a terminal is required to read the password/ Failure/Error: its(:stderr) { is_expected.to match %r{no tty present and no askpass program specified|a terminal is required to read the password} } expected "su: user nosudoguy does not exist or the user entry does not contain all the required fields\n" to match /no tty present and no askpass program specified|a terminal is required to read the password/ Diff: @@ -1 +1 @@ -/no tty present and no askpass program specified|a terminal is required to read the password/ +su: user nosudoguy does not exist or the user entry does not contain all the required fields
Puppet / 8 - Debian 11: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and prefix set to puppet_ specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'debian11-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144944925.pp.tk8ljv Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.debian.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node debian11-64-puppet8.example.com
Puppet / 8 - Debian 11: spec/acceptance/sudo_conf_spec.rb#L67
sudo::conf class with ignore and prefix set to puppet_ specified managed file Command "touch /etc/sudoers.d/file-from-rpm" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 8 - Debian 11: spec/acceptance/sudo_conf_spec.rb#L71
sudo::conf class with ignore and prefix set to puppet_ specified managed file Command "chmod 0440 /etc/sudoers.d/file-from-rpm" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 8 - Debian 11: spec/acceptance/sudo_conf_spec.rb#L91
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to be file Failure/Error: it { is_expected.to be_file } expected `File "/etc/sudoers.d/puppet_10_janedoe_nopasswd".file?` to be truthy, got false
Puppet / 8 - Debian 11: spec/acceptance/sudo_conf_spec.rb#L92
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to contain "janedoe ALL=(ALL) NOPASSWD: ALL" Failure/Error: it { is_expected.to contain 'janedoe ALL=(ALL) NOPASSWD: ALL' } expected File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" to contain "janedoe ALL=(ALL) NOPASSWD: ALL"
Puppet / 8 - Debian 10: spec/acceptance/class_spec.rb#L8
sudo class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'debian10-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144942746.pp.Q7I6Qp Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.debian.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node debian10-64-puppet8.example.com
Puppet / 8 - Debian 10: spec/acceptance/sudo_conf_spec.rb#L8
sudo::conf class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'debian10-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144944484.pp.fkamvP Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.debian.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node debian10-64-puppet8.example.com
Puppet / 8 - Debian 10: spec/acceptance/sudo_conf_spec.rb#L45
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" stdout is expected to match /Hello World/ Failure/Error: its(:stdout) { is_expected.to match %r{Hello World} } expected "" to match /Hello World/ Diff: @@ -1 +1 @@ -/Hello World/ +""
Puppet / 8 - Debian 10: spec/acceptance/sudo_conf_spec.rb#L46
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 8 - Debian 10: spec/acceptance/sudo_conf_spec.rb#L50
sudo::conf class with default parameters Command "su - nosudoguy -c 'sudo echo Hello World'" stderr is expected to match /no tty present and no askpass program specified|a terminal is required to read the password/ Failure/Error: its(:stderr) { is_expected.to match %r{no tty present and no askpass program specified|a terminal is required to read the password} } expected "su: user nosudoguy does not exist\n" to match /no tty present and no askpass program specified|a terminal is required to read the password/ Diff: @@ -1 +1 @@ -/no tty present and no askpass program specified|a terminal is required to read the password/ +su: user nosudoguy does not exist
Puppet / 8 - Debian 10: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and prefix set to puppet_ specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'debian10-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144946289.pp.FBLVzM Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.debian.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node debian10-64-puppet8.example.com
Puppet / 8 - Debian 10: spec/acceptance/sudo_conf_spec.rb#L67
sudo::conf class with ignore and prefix set to puppet_ specified managed file Command "touch /etc/sudoers.d/file-from-rpm" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 8 - Debian 10: spec/acceptance/sudo_conf_spec.rb#L71
sudo::conf class with ignore and prefix set to puppet_ specified managed file Command "chmod 0440 /etc/sudoers.d/file-from-rpm" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 8 - Debian 10: spec/acceptance/sudo_conf_spec.rb#L91
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to be file Failure/Error: it { is_expected.to be_file } expected `File "/etc/sudoers.d/puppet_10_janedoe_nopasswd".file?` to be truthy, got false
Puppet / 8 - Debian 10: spec/acceptance/sudo_conf_spec.rb#L92
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to contain "janedoe ALL=(ALL) NOPASSWD: ALL" Failure/Error: it { is_expected.to contain 'janedoe ALL=(ALL) NOPASSWD: ALL' } expected File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" to contain "janedoe ALL=(ALL) NOPASSWD: ALL"
Puppet / 7 - CentOS 8: spec/acceptance/class_spec.rb#L8
sudo class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos8-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144945611.pp.1QsXSv Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel8.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos8-64-puppet7.example.com
Puppet / 7 - CentOS 8: spec/acceptance/sudo_conf_spec.rb#L8
sudo::conf class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos8-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144947154.pp.f8KAK1 Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel8.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos8-64-puppet7.example.com
Puppet / 7 - CentOS 8: spec/acceptance/sudo_conf_spec.rb#L45
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" stdout is expected to match /Hello World/ Failure/Error: its(:stdout) { is_expected.to match %r{Hello World} } expected "" to match /Hello World/ Diff: @@ -1 +1 @@ -/Hello World/ +""
Puppet / 7 - CentOS 8: spec/acceptance/sudo_conf_spec.rb#L46
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 7 - CentOS 8: spec/acceptance/sudo_conf_spec.rb#L50
sudo::conf class with default parameters Command "su - nosudoguy -c 'sudo echo Hello World'" stderr is expected to match /no tty present and no askpass program specified|a terminal is required to read the password/ Failure/Error: its(:stderr) { is_expected.to match %r{no tty present and no askpass program specified|a terminal is required to read the password} } expected "su: user nosudoguy does not exist\n" to match /no tty present and no askpass program specified|a terminal is required to read the password/ Diff: @@ -1 +1 @@ -/no tty present and no askpass program specified|a terminal is required to read the password/ +su: user nosudoguy does not exist
Puppet / 7 - CentOS 8: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and prefix set to puppet_ specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos8-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144948771.pp.TvwQzd Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel8.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos8-64-puppet7.example.com
Puppet / 7 - CentOS 8: spec/acceptance/sudo_conf_spec.rb#L91
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to be file Failure/Error: it { is_expected.to be_file } expected `File "/etc/sudoers.d/puppet_10_janedoe_nopasswd".file?` to be truthy, got false
Puppet / 7 - CentOS 8: spec/acceptance/sudo_conf_spec.rb#L92
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to contain "janedoe ALL=(ALL) NOPASSWD: ALL" Failure/Error: it { is_expected.to contain 'janedoe ALL=(ALL) NOPASSWD: ALL' } expected File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" to contain "janedoe ALL=(ALL) NOPASSWD: ALL"
Puppet / 7 - CentOS 8: spec/acceptance/sudo_conf_spec.rb#L116
sudo::conf class with ignore and prefix set to puppet_ specified without managed file without a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos8-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144951023.pp.FmrQc5 Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel8.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos8-64-puppet7.example.com
Puppet / 7 - CentOS 8: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and suffix set to _puppet specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos8-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144952720.pp.ZPSihe Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel8.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos8-64-puppet7.example.com
Puppet / 8 - Ubuntu 22.04: spec/acceptance/class_spec.rb#L8
sudo class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu2204-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144941599.pp.e1oVmd Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.ubuntu.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node ubuntu2204-64-puppet8.example.com
Puppet / 8 - Ubuntu 22.04: spec/acceptance/sudo_conf_spec.rb#L8
sudo::conf class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu2204-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144943291.pp.L2by9u Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.ubuntu.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node ubuntu2204-64-puppet8.example.com
Puppet / 8 - Ubuntu 22.04: spec/acceptance/sudo_conf_spec.rb#L45
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" stdout is expected to match /Hello World/ Failure/Error: its(:stdout) { is_expected.to match %r{Hello World} } expected "" to match /Hello World/ Diff: @@ -1 +1 @@ -/Hello World/ +""
Puppet / 8 - Ubuntu 22.04: spec/acceptance/sudo_conf_spec.rb#L46
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 8 - Ubuntu 22.04: spec/acceptance/sudo_conf_spec.rb#L50
sudo::conf class with default parameters Command "su - nosudoguy -c 'sudo echo Hello World'" stderr is expected to match /no tty present and no askpass program specified|a terminal is required to read the password/ Failure/Error: its(:stderr) { is_expected.to match %r{no tty present and no askpass program specified|a terminal is required to read the password} } expected "su: user nosudoguy does not exist or the user entry does not contain all the required fields\n" to match /no tty present and no askpass program specified|a terminal is required to read the password/ Diff: @@ -1 +1 @@ -/no tty present and no askpass program specified|a terminal is required to read the password/ +su: user nosudoguy does not exist or the user entry does not contain all the required fields
Puppet / 8 - Ubuntu 22.04: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and prefix set to puppet_ specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu2204-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144945081.pp.ui2zaC Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.ubuntu.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node ubuntu2204-64-puppet8.example.com
Puppet / 8 - Ubuntu 22.04: spec/acceptance/sudo_conf_spec.rb#L67
sudo::conf class with ignore and prefix set to puppet_ specified managed file Command "touch /etc/sudoers.d/file-from-rpm" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 8 - Ubuntu 22.04: spec/acceptance/sudo_conf_spec.rb#L71
sudo::conf class with ignore and prefix set to puppet_ specified managed file Command "chmod 0440 /etc/sudoers.d/file-from-rpm" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 8 - Ubuntu 22.04: spec/acceptance/sudo_conf_spec.rb#L91
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to be file Failure/Error: it { is_expected.to be_file } expected `File "/etc/sudoers.d/puppet_10_janedoe_nopasswd".file?` to be truthy, got false
Puppet / 8 - Ubuntu 22.04: spec/acceptance/sudo_conf_spec.rb#L92
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to contain "janedoe ALL=(ALL) NOPASSWD: ALL" Failure/Error: it { is_expected.to contain 'janedoe ALL=(ALL) NOPASSWD: ALL' } expected File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" to contain "janedoe ALL=(ALL) NOPASSWD: ALL"
Puppet / 8 - CentOS 8: spec/acceptance/class_spec.rb#L8
sudo class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos8-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144944963.pp.8ZBwke Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel8.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos8-64-puppet8.example.com
Puppet / 8 - CentOS 8: spec/acceptance/sudo_conf_spec.rb#L8
sudo::conf class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos8-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144946719.pp.qx9yLO Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel8.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos8-64-puppet8.example.com
Puppet / 8 - CentOS 8: spec/acceptance/sudo_conf_spec.rb#L45
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" stdout is expected to match /Hello World/ Failure/Error: its(:stdout) { is_expected.to match %r{Hello World} } expected "" to match /Hello World/ Diff: @@ -1 +1 @@ -/Hello World/ +""
Puppet / 8 - CentOS 8: spec/acceptance/sudo_conf_spec.rb#L46
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 8 - CentOS 8: spec/acceptance/sudo_conf_spec.rb#L50
sudo::conf class with default parameters Command "su - nosudoguy -c 'sudo echo Hello World'" stderr is expected to match /no tty present and no askpass program specified|a terminal is required to read the password/ Failure/Error: its(:stderr) { is_expected.to match %r{no tty present and no askpass program specified|a terminal is required to read the password} } expected "su: user nosudoguy does not exist\n" to match /no tty present and no askpass program specified|a terminal is required to read the password/ Diff: @@ -1 +1 @@ -/no tty present and no askpass program specified|a terminal is required to read the password/ +su: user nosudoguy does not exist
Puppet / 8 - CentOS 8: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and prefix set to puppet_ specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos8-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144948529.pp.5O1dT1 Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel8.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos8-64-puppet8.example.com
Puppet / 8 - CentOS 8: spec/acceptance/sudo_conf_spec.rb#L91
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to be file Failure/Error: it { is_expected.to be_file } expected `File "/etc/sudoers.d/puppet_10_janedoe_nopasswd".file?` to be truthy, got false
Puppet / 8 - CentOS 8: spec/acceptance/sudo_conf_spec.rb#L92
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to contain "janedoe ALL=(ALL) NOPASSWD: ALL" Failure/Error: it { is_expected.to contain 'janedoe ALL=(ALL) NOPASSWD: ALL' } expected File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" to contain "janedoe ALL=(ALL) NOPASSWD: ALL"
Puppet / 8 - CentOS 8: spec/acceptance/sudo_conf_spec.rb#L116
sudo::conf class with ignore and prefix set to puppet_ specified without managed file without a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos8-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144951022.pp.btZEDl Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel8.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos8-64-puppet8.example.com
Puppet / 8 - CentOS 8: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and suffix set to _puppet specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos8-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144952958.pp.wvIWOZ Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel8.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos8-64-puppet8.example.com
Puppet / 7 - Ubuntu 18.04: spec/acceptance/class_spec.rb#L8
sudo class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu1804-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144945967.pp.w7uBY0 Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.ubuntu.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node ubuntu1804-64-puppet7.example.com
Puppet / 7 - Ubuntu 18.04: spec/acceptance/sudo_conf_spec.rb#L8
sudo::conf class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu1804-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144947534.pp.leA5Ef Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.ubuntu.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node ubuntu1804-64-puppet7.example.com
Puppet / 7 - Ubuntu 18.04: spec/acceptance/sudo_conf_spec.rb#L45
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" stdout is expected to match /Hello World/ Failure/Error: its(:stdout) { is_expected.to match %r{Hello World} } expected "" to match /Hello World/ Diff: @@ -1 +1 @@ -/Hello World/ +""
Puppet / 7 - Ubuntu 18.04: spec/acceptance/sudo_conf_spec.rb#L46
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 7 - Ubuntu 18.04: spec/acceptance/sudo_conf_spec.rb#L50
sudo::conf class with default parameters Command "su - nosudoguy -c 'sudo echo Hello World'" stderr is expected to match /no tty present and no askpass program specified|a terminal is required to read the password/ Failure/Error: its(:stderr) { is_expected.to match %r{no tty present and no askpass program specified|a terminal is required to read the password} } expected "No passwd entry for user 'nosudoguy'\n" to match /no tty present and no askpass program specified|a terminal is required to read the password/ Diff: @@ -1 +1 @@ -/no tty present and no askpass program specified|a terminal is required to read the password/ +No passwd entry for user 'nosudoguy'
Puppet / 7 - Ubuntu 18.04: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and prefix set to puppet_ specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu1804-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144949190.pp.vMHFRJ Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.ubuntu.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node ubuntu1804-64-puppet7.example.com
Puppet / 7 - Ubuntu 18.04: spec/acceptance/sudo_conf_spec.rb#L67
sudo::conf class with ignore and prefix set to puppet_ specified managed file Command "touch /etc/sudoers.d/file-from-rpm" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 7 - Ubuntu 18.04: spec/acceptance/sudo_conf_spec.rb#L71
sudo::conf class with ignore and prefix set to puppet_ specified managed file Command "chmod 0440 /etc/sudoers.d/file-from-rpm" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 7 - Ubuntu 18.04: spec/acceptance/sudo_conf_spec.rb#L91
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to be file Failure/Error: it { is_expected.to be_file } expected `File "/etc/sudoers.d/puppet_10_janedoe_nopasswd".file?` to be truthy, got false
Puppet / 7 - Ubuntu 18.04: spec/acceptance/sudo_conf_spec.rb#L92
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to contain "janedoe ALL=(ALL) NOPASSWD: ALL" Failure/Error: it { is_expected.to contain 'janedoe ALL=(ALL) NOPASSWD: ALL' } expected File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" to contain "janedoe ALL=(ALL) NOPASSWD: ALL"
Puppet / 8 - CentOS 9: spec/acceptance/class_spec.rb#L8
sudo class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos9-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144947643.pp.0mJ62D Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel9.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos9-64-puppet8.example.com
Puppet / 8 - CentOS 9: spec/acceptance/sudo_conf_spec.rb#L8
sudo::conf class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos9-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144949344.pp.lFvu7A Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel9.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos9-64-puppet8.example.com
Puppet / 8 - CentOS 9: spec/acceptance/sudo_conf_spec.rb#L45
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" stdout is expected to match /Hello World/ Failure/Error: its(:stdout) { is_expected.to match %r{Hello World} } expected "" to match /Hello World/ Diff: @@ -1 +1 @@ -/Hello World/ +""
Puppet / 8 - CentOS 9: spec/acceptance/sudo_conf_spec.rb#L46
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 8 - CentOS 9: spec/acceptance/sudo_conf_spec.rb#L50
sudo::conf class with default parameters Command "su - nosudoguy -c 'sudo echo Hello World'" stderr is expected to match /no tty present and no askpass program specified|a terminal is required to read the password/ Failure/Error: its(:stderr) { is_expected.to match %r{no tty present and no askpass program specified|a terminal is required to read the password} } expected "su: user nosudoguy does not exist or the user entry does not contain all the required fields\n" to match /no tty present and no askpass program specified|a terminal is required to read the password/ Diff: @@ -1 +1 @@ -/no tty present and no askpass program specified|a terminal is required to read the password/ +su: user nosudoguy does not exist or the user entry does not contain all the required fields
Puppet / 8 - CentOS 9: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and prefix set to puppet_ specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos9-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144951166.pp.cHYvAj Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel9.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos9-64-puppet8.example.com
Puppet / 8 - CentOS 9: spec/acceptance/sudo_conf_spec.rb#L91
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to be file Failure/Error: it { is_expected.to be_file } expected `File "/etc/sudoers.d/puppet_10_janedoe_nopasswd".file?` to be truthy, got false
Puppet / 8 - CentOS 9: spec/acceptance/sudo_conf_spec.rb#L92
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to contain "janedoe ALL=(ALL) NOPASSWD: ALL" Failure/Error: it { is_expected.to contain 'janedoe ALL=(ALL) NOPASSWD: ALL' } expected File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" to contain "janedoe ALL=(ALL) NOPASSWD: ALL"
Puppet / 8 - CentOS 9: spec/acceptance/sudo_conf_spec.rb#L116
sudo::conf class with ignore and prefix set to puppet_ specified without managed file without a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos9-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144953638.pp.3vJLbD Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel9.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos9-64-puppet8.example.com
Puppet / 8 - CentOS 9: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and suffix set to _puppet specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos9-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144955467.pp.MquYdH Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.rhel9.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 1 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node centos9-64-puppet8.example.com
Puppet / 8 - Ubuntu 18.04: spec/acceptance/class_spec.rb#L8
sudo class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu1804-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144949259.pp.NosQBp Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.ubuntu.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node ubuntu1804-64-puppet8.example.com
Puppet / 8 - Ubuntu 18.04: spec/acceptance/sudo_conf_spec.rb#L8
sudo::conf class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu1804-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144951013.pp.jv0EpF Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.ubuntu.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node ubuntu1804-64-puppet8.example.com
Puppet / 8 - Ubuntu 18.04: spec/acceptance/sudo_conf_spec.rb#L45
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" stdout is expected to match /Hello World/ Failure/Error: its(:stdout) { is_expected.to match %r{Hello World} } expected "" to match /Hello World/ Diff: @@ -1 +1 @@ -/Hello World/ +""
Puppet / 8 - Ubuntu 18.04: spec/acceptance/sudo_conf_spec.rb#L46
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 8 - Ubuntu 18.04: spec/acceptance/sudo_conf_spec.rb#L50
sudo::conf class with default parameters Command "su - nosudoguy -c 'sudo echo Hello World'" stderr is expected to match /no tty present and no askpass program specified|a terminal is required to read the password/ Failure/Error: its(:stderr) { is_expected.to match %r{no tty present and no askpass program specified|a terminal is required to read the password} } expected "No passwd entry for user 'nosudoguy'\n" to match /no tty present and no askpass program specified|a terminal is required to read the password/ Diff: @@ -1 +1 @@ -/no tty present and no askpass program specified|a terminal is required to read the password/ +No passwd entry for user 'nosudoguy'
Puppet / 8 - Ubuntu 18.04: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and prefix set to puppet_ specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu1804-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144952860.pp.LXKqBZ Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.ubuntu.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node ubuntu1804-64-puppet8.example.com
Puppet / 8 - Ubuntu 18.04: spec/acceptance/sudo_conf_spec.rb#L67
sudo::conf class with ignore and prefix set to puppet_ specified managed file Command "touch /etc/sudoers.d/file-from-rpm" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 8 - Ubuntu 18.04: spec/acceptance/sudo_conf_spec.rb#L71
sudo::conf class with ignore and prefix set to puppet_ specified managed file Command "chmod 0440 /etc/sudoers.d/file-from-rpm" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 8 - Ubuntu 18.04: spec/acceptance/sudo_conf_spec.rb#L91
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to be file Failure/Error: it { is_expected.to be_file } expected `File "/etc/sudoers.d/puppet_10_janedoe_nopasswd".file?` to be truthy, got false
Puppet / 8 - Ubuntu 18.04: spec/acceptance/sudo_conf_spec.rb#L92
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to contain "janedoe ALL=(ALL) NOPASSWD: ALL" Failure/Error: it { is_expected.to contain 'janedoe ALL=(ALL) NOPASSWD: ALL' } expected File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" to contain "janedoe ALL=(ALL) NOPASSWD: ALL"
Puppet / 8 - Ubuntu 20.04: spec/acceptance/class_spec.rb#L8
sudo class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu2004-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_145103242.pp.9OsdxT Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.ubuntu.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node ubuntu2004-64-puppet8.example.com
Puppet / 8 - Ubuntu 20.04: spec/acceptance/sudo_conf_spec.rb#L8
sudo::conf class with default parameters works with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu2004-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_145104930.pp.noVrkt Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.ubuntu.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node ubuntu2004-64-puppet8.example.com
Puppet / 8 - Ubuntu 20.04: spec/acceptance/sudo_conf_spec.rb#L45
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" stdout is expected to match /Hello World/ Failure/Error: its(:stdout) { is_expected.to match %r{Hello World} } expected "" to match /Hello World/ Diff: @@ -1 +1 @@ -/Hello World/ +""
Puppet / 8 - Ubuntu 20.04: spec/acceptance/sudo_conf_spec.rb#L46
sudo::conf class with default parameters Command "su - janedoe -c 'sudo echo Hello World'" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 8 - Ubuntu 20.04: spec/acceptance/sudo_conf_spec.rb#L50
sudo::conf class with default parameters Command "su - nosudoguy -c 'sudo echo Hello World'" stderr is expected to match /no tty present and no askpass program specified|a terminal is required to read the password/ Failure/Error: its(:stderr) { is_expected.to match %r{no tty present and no askpass program specified|a terminal is required to read the password} } expected "su: user nosudoguy does not exist\n" to match /no tty present and no askpass program specified|a terminal is required to read the password/ Diff: @@ -1 +1 @@ -/no tty present and no askpass program specified|a terminal is required to read the password/ +su: user nosudoguy does not exist
Puppet / 8 - Ubuntu 20.04: spec/acceptance/sudo_conf_spec.rb#L74
sudo::conf class with ignore and prefix set to puppet_ specified managed file create a puppet managed file Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu2004-64-puppet8.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_145106655.pp.GeIGf8 Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.ubuntu.erb: Filepath: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb Line: 40 Detail: 'sudo::defaults' expects no arguments, got 2 (file: /etc/puppetlabs/code/environments/production/modules/sudo/manifests/init.pp, line: 209, column: 23) on node ubuntu2004-64-puppet8.example.com
Puppet / 8 - Ubuntu 20.04: spec/acceptance/sudo_conf_spec.rb#L67
sudo::conf class with ignore and prefix set to puppet_ specified managed file Command "touch /etc/sudoers.d/file-from-rpm" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 8 - Ubuntu 20.04: spec/acceptance/sudo_conf_spec.rb#L71
sudo::conf class with ignore and prefix set to puppet_ specified managed file Command "chmod 0440 /etc/sudoers.d/file-from-rpm" exit_status is expected to eq 0 Failure/Error: its(:exit_status) { is_expected.to eq 0 } expected: 0 got: 1 (compared using ==)
Puppet / 8 - Ubuntu 20.04: spec/acceptance/sudo_conf_spec.rb#L91
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to be file Failure/Error: it { is_expected.to be_file } expected `File "/etc/sudoers.d/puppet_10_janedoe_nopasswd".file?` to be truthy, got false
Puppet / 8 - Ubuntu 20.04: spec/acceptance/sudo_conf_spec.rb#L92
sudo::conf class with ignore and prefix set to puppet_ specified managed file File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" is expected to contain "janedoe ALL=(ALL) NOPASSWD: ALL" Failure/Error: it { is_expected.to contain 'janedoe ALL=(ALL) NOPASSWD: ALL' } expected File "/etc/sudoers.d/puppet_10_janedoe_nopasswd" to contain "janedoe ALL=(ALL) NOPASSWD: ALL"