add types in sudo::conf #144
Annotations
2 errors
Run tests:
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
|
Run tests
Process completed with exit code 1.
|
Loading