use sudo::defaults in rhel9 template #138
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 '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
|
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 '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
|
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\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
|
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 '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
|
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"
|
Run tests:
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
|
Run tests:
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
|
The logs for this run have expired and are no longer available.
Loading