add types in sudo::conf #144
ci.yml
on: pull_request
Puppet
/
Static validations
21s
Matrix: Puppet / acceptance
Matrix: Puppet / unit
Puppet
/
Test suite
0s
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.
|