Skip to content

add types in sudo::conf #144

add types in sudo::conf

add types in sudo::conf #144

Triggered via pull request May 13, 2024 18:07
@sazsaz
synchronize #306
add-types
Status Failure
Total duration 4m 48s
Artifacts

ci.yml

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

Annotations

4 errors
Puppet / 7 (Ruby 2.7): spec/defines/sudo_spec.rb#L207
sudo::conf when adding a sudo entry with array content 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('10_admins').with( ensure: 'present', content: "# This file is managed by Puppet; changes may be overwritten\n%admins ALL=(ALL) NOPASSWD: ALL\n%wheel ALL=(ALL) NOPASSWD: ALL\n", owner: 'root', group: 'root', path: file_path, mode: '0440' ) Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Sudo::Conf[admins]: parameter 'content' expects a value of type Undef or String, got Tuple (line: 2) on node fv-az841-703.g11ey1dcctbuhkhojwlj3kcpwe.dx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7)
Process completed with exit code 1.
Puppet / 8 (Ruby 3.2): spec/defines/sudo_spec.rb#L207
sudo::conf when adding a sudo entry with array content 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('10_admins').with( ensure: 'present', content: "# This file is managed by Puppet; changes may be overwritten\n%admins ALL=(ALL) NOPASSWD: ALL\n%wheel ALL=(ALL) NOPASSWD: ALL\n", owner: 'root', group: 'root', path: file_path, mode: '0440' ) Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Sudo::Conf[admins]: parameter 'content' expects a value of type Undef or String, got Tuple (line: 2) on node fv-az1788-408.v003jhcb0gbebhi3eudo0jipka.bx.internal.cloudapp.net
Puppet / 8 (Ruby 3.2)
Process completed with exit code 1.