Skip to content

use sudo::defaults in rhel9 template #137

use sudo::defaults in rhel9 template

use sudo::defaults in rhel9 template #137

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

ci.yml

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

Annotations

130 errors
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 1 argument, 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-az1024-873.iwjnporn0ryezofxapuyptwyra.bx.internal.cloudapp.net
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 1 argument, 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-az1024-873.iwjnporn0ryezofxapuyptwyra.bx.internal.cloudapp.net
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 1 argument, 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-az1024-873.iwjnporn0ryezofxapuyptwyra.bx.internal.cloudapp.net
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 1 argument, 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-az1024-873.iwjnporn0ryezofxapuyptwyra.bx.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 1 argument, 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-az1024-873.iwjnporn0ryezofxapuyptwyra.bx.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 1 argument, 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-az1024-873.iwjnporn0ryezofxapuyptwyra.bx.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 1 argument, 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-az1024-873.iwjnporn0ryezofxapuyptwyra.bx.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 1 argument, 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-az1024-873.iwjnporn0ryezofxapuyptwyra.bx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/defines/sudo_spec.rb#L100
sudo::conf when creating a sudo entry with single number priority is expected to contain File[05_admins] that notifies Exec[sudo-syntax-check for file /etc/sudoers.d/05_admins] Failure/Error: it { is_expected.to contain_file(filename).that_notifies("Exec[sudo-syntax-check for file #{params[:sudo_config_dir]}/0#{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 1 argument, 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-az1024-873.iwjnporn0ryezofxapuyptwyra.bx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/defines/sudo_spec.rb#L101
sudo::conf when creating a sudo entry with single number priority is expected not to contain File[05_admins] that requires Exec[sudo-syntax-check for file /etc/sudoers.d/05_admins] Failure/Error: it { is_expected.not_to contain_file(filename).that_requires("Exec[sudo-syntax-check for file #{params[:sudo_config_dir]}/0#{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 1 argument, 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-az1024-873.iwjnporn0ryezofxapuyptwyra.bx.internal.cloudapp.net
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_144324135.pp.XpLvgc 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 1 argument, 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_144325623.pp.hqhG3g 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 1 argument, 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_144327170.pp.E6LNe4 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 1 argument, 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 / 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_144326278.pp.EZdYAL 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 1 argument, 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_144328003.pp.q8BCbV 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 1 argument, 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_144329785.pp.lYwY2C 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 1 argument, 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 / 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_144326290.pp.LImjqx 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 1 argument, 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#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_144327847.pp.x1ueZw 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 1 argument, 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 - 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 - 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 - 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_144329460.pp.WiJ2uG 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 1 argument, 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#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 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 - 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 - 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_144326062.pp.xMQILi 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 1 argument, 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_144327717.pp.hbfXo4 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 1 argument, 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 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_144326767.pp.Tet8zb 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 1 argument, 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 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 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_144328418.pp.5nuOEZ 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 1 argument, 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 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 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 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 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 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_144329441.pp.8td3Ro 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 1 argument, 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 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 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 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_144330117.pp.xSDwqH 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 1 argument, 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 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 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 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 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 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 / 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 / 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_144328059.pp.q6wvcX 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 1 argument, 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#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_144329591.pp.naiduS 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 1 argument, 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_144331198.pp.UYoqHf 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 1 argument, 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 / - Archlinux rolling: 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 'archlinuxrolling-64.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144326083.pp.EWw5im Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.archlinux.erb: Filepath: /usr/lib/ruby/vendor_ruby/3.0.0/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects 1 argument, got none (file: /etc/puppetlabs/code/modules/sudo/manifests/init.pp, line: 209, column: 23) on node archlinuxrolling-64.example.com
Puppet / - Archlinux rolling: 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 'archlinuxrolling-64.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144327592.pp.h4gpte Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.archlinux.erb: Filepath: /usr/lib/ruby/vendor_ruby/3.0.0/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects 1 argument, got none (file: /etc/puppetlabs/code/modules/sudo/manifests/init.pp, line: 209, column: 23) on node archlinuxrolling-64.example.com
Puppet / - Archlinux rolling: 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 / - Archlinux rolling: 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 / - Archlinux rolling: 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 / - Archlinux rolling: 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 'archlinuxrolling-64.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_144329114.pp.Pnr1B9 Last 10 lines of output were: Info: Loading facts Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template sudo/sudoers.archlinux.erb: Filepath: /usr/lib/ruby/vendor_ruby/3.0.0/puppet/pops/functions/dispatcher.rb Line: 39 Detail: 'sudo::defaults' expects 1 argument, got none (file: /etc/puppetlabs/code/modules/sudo/manifests/init.pp, line: 209, column: 23) on node archlinuxrolling-64.example.com
Puppet / - Archlinux rolling: 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 / - Archlinux rolling: 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 / - Archlinux rolling: 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 / - Archlinux rolling: 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 - 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_144329768.pp.oHOy5c 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 1 argument, 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_144331363.pp.1fF70V 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 1 argument, 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_144333038.pp.twHpuz 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 1 argument, 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 / 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_144335044.pp.71izHd 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 1 argument, 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_144336547.pp.FmqxQY 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 1 argument, 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_144338128.pp.KoQsEh 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 1 argument, 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 - 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_144336939.pp.FBw3cG 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 1 argument, 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_144338671.pp.xqcrDp 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 1 argument, 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_144340480.pp.57qUQ1 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 1 argument, 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_144350901.pp.XaoExe 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 1 argument, 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_144352825.pp.bPl2vX 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 1 argument, 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_144354765.pp.0Q8W5C 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 1 argument, 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"
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 1 argument, 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-az883-278.sk5y2rh0qbtexpi1qont3x1wzb.ex.internal.cloudapp.net
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 1 argument, 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-az883-278.sk5y2rh0qbtexpi1qont3x1wzb.ex.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 1 argument, 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-az883-278.sk5y2rh0qbtexpi1qont3x1wzb.ex.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 1 argument, 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-az883-278.sk5y2rh0qbtexpi1qont3x1wzb.ex.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 1 argument, 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-az883-278.sk5y2rh0qbtexpi1qont3x1wzb.ex.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 1 argument, 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-az883-278.sk5y2rh0qbtexpi1qont3x1wzb.ex.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 1 argument, 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-az883-278.sk5y2rh0qbtexpi1qont3x1wzb.ex.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 1 argument, 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-az883-278.sk5y2rh0qbtexpi1qont3x1wzb.ex.internal.cloudapp.net
Puppet / 8 (Ruby 3.2): spec/defines/sudo_spec.rb#L100
sudo::conf when creating a sudo entry with single number priority is expected to contain File[05_admins] that notifies Exec[sudo-syntax-check for file /etc/sudoers.d/05_admins] Failure/Error: it { is_expected.to contain_file(filename).that_notifies("Exec[sudo-syntax-check for file #{params[:sudo_config_dir]}/0#{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 1 argument, 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-az883-278.sk5y2rh0qbtexpi1qont3x1wzb.ex.internal.cloudapp.net
Puppet / 8 (Ruby 3.2): spec/defines/sudo_spec.rb#L101
sudo::conf when creating a sudo entry with single number priority is expected not to contain File[05_admins] that requires Exec[sudo-syntax-check for file /etc/sudoers.d/05_admins] Failure/Error: it { is_expected.not_to contain_file(filename).that_requires("Exec[sudo-syntax-check for file #{params[:sudo_config_dir]}/0#{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 1 argument, 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-az883-278.sk5y2rh0qbtexpi1qont3x1wzb.ex.internal.cloudapp.net