use sudo::defaults in rhel9 template #137
Annotations
10 errors
Run tests:
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
|
Run tests:
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
|
Run tests:
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/
+""
|
Run tests:
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 ==)
|
Run tests:
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
|
Run tests:
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
|
Run tests:
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 ==)
|
Run tests:
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 ==)
|
Run tests:
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
|
Run tests:
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"
|
Loading