add types in sudo::conf #145
Annotations
10 errors
Run tests:
spec/defines/sudo_spec.rb#L33
sudo::conf when creating a sudo entry is expected to contain Sudo::Conf[admins] with priority => 10 and content supplied string
Failure/Error:
is_expected.to contain_sudo__conf('admins').with(
priority: params[:priority],
content: params[:content]
)
Puppet::PreformattedError:
Evaluation Error: Optional-Type[] accepts 1 argument. Got 2 (file: /home/runner/work/puppet-sudo/puppet-sudo/spec/fixtures/modules/sudo/manifests/conf.pp, line: 40, column: 3) on node fv-az774-224.j3qnnsaxsfoepktz21rketxmog.bx.internal.cloudapp.net
|
Run tests:
spec/defines/sudo_spec.rb#L40
sudo::conf when creating a sudo entry 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(filename).with(
ensure: 'present',
content: "# This file is managed by Puppet; changes may be overwritten\n%admins ALL=(ALL) NOPASSWD: ALL\n",
owner: 'root',
group: 'root',
path: file_path,
mode: '0440'
)
Puppet::PreformattedError:
Evaluation Error: Optional-Type[] accepts 1 argument. Got 2 (file: /home/runner/work/puppet-sudo/puppet-sudo/spec/fixtures/modules/sudo/manifests/conf.pp, line: 40, column: 3) on node fv-az774-224.j3qnnsaxsfoepktz21rketxmog.bx.internal.cloudapp.net
|
Run tests:
spec/defines/sudo_spec.rb#L51
sudo::conf when creating a sudo entry is expected to contain Exec[sudo-syntax-check for file /etc/sudoers.d/10_admins] with command => "visudo -c || ( rm -f '/etc/sudoers.d/10_admins' && exit 1)" and refreshonly => "true"
Failure/Error:
is_expected.to contain_exec("sudo-syntax-check for file #{params[:sudo_config_dir]}/#{params[:priority]}_#{title}").with(
command: "visudo -c || ( rm -f '#{params[:sudo_config_dir]}/#{params[:priority]}_#{title}' && exit 1)",
refreshonly: 'true'
)
Puppet::PreformattedError:
Evaluation Error: Optional-Type[] accepts 1 argument. Got 2 (file: /home/runner/work/puppet-sudo/puppet-sudo/spec/fixtures/modules/sudo/manifests/conf.pp, line: 40, column: 3) on node fv-az774-224.j3qnnsaxsfoepktz21rketxmog.bx.internal.cloudapp.net
|
Run tests:
spec/defines/sudo_spec.rb#L58
sudo::conf when creating a sudo entry is expected to contain File[10_admins] that notifies Exec[sudo-syntax-check for file /etc/sudoers.d/10_admins]
Failure/Error: it { is_expected.to contain_file(filename).that_notifies("Exec[sudo-syntax-check for file #{params[:sudo_config_dir]}/#{params[:priority]}_#{title}]") }
Puppet::PreformattedError:
Evaluation Error: Optional-Type[] accepts 1 argument. Got 2 (file: /home/runner/work/puppet-sudo/puppet-sudo/spec/fixtures/modules/sudo/manifests/conf.pp, line: 40, column: 3) on node fv-az774-224.j3qnnsaxsfoepktz21rketxmog.bx.internal.cloudapp.net
|
Run tests:
spec/defines/sudo_spec.rb#L59
sudo::conf when creating a sudo entry is expected not to contain File[10_admins] that requires Exec[sudo-syntax-check for file /etc/sudoers.d/10_admins]
Failure/Error: it { is_expected.not_to contain_file(filename).that_requires("Exec[sudo-syntax-check for file #{params[:sudo_config_dir]}/#{params[:priority]}_#{title}]") }
Puppet::PreformattedError:
Evaluation Error: Optional-Type[] accepts 1 argument. Got 2 (file: /home/runner/work/puppet-sudo/puppet-sudo/spec/fixtures/modules/sudo/manifests/conf.pp, line: 40, column: 3) on node fv-az774-224.j3qnnsaxsfoepktz21rketxmog.bx.internal.cloudapp.net
|
Run tests:
spec/defines/sudo_spec.rb#L75
sudo::conf when creating a sudo entry with single number priority is expected to contain Sudo::Conf[admins] with priority => 5 and content supplied string
Failure/Error:
is_expected.to contain_sudo__conf('admins').with(
priority: params[:priority],
content: params[:content]
)
Puppet::PreformattedError:
Evaluation Error: Optional-Type[] accepts 1 argument. Got 2 (file: /home/runner/work/puppet-sudo/puppet-sudo/spec/fixtures/modules/sudo/manifests/conf.pp, line: 40, column: 3) on node fv-az774-224.j3qnnsaxsfoepktz21rketxmog.bx.internal.cloudapp.net
|
Run tests:
spec/defines/sudo_spec.rb#L82
sudo::conf when creating a sudo entry with single number priority is expected to contain File[05_admins] with ensure => "present", content supplied string, owner => "root", group => "root", path => "/etc/sudoers.d/05_admins" and mode => "0440"
Failure/Error:
is_expected.to contain_file(filename).with(
ensure: 'present',
content: "# This file is managed by Puppet; changes may be overwritten\n%admins ALL=(ALL) NOPASSWD: ALL\n",
owner: 'root',
group: 'root',
path: file_path,
mode: '0440'
)
Puppet::PreformattedError:
Evaluation Error: Optional-Type[] accepts 1 argument. Got 2 (file: /home/runner/work/puppet-sudo/puppet-sudo/spec/fixtures/modules/sudo/manifests/conf.pp, line: 40, column: 3) on node fv-az774-224.j3qnnsaxsfoepktz21rketxmog.bx.internal.cloudapp.net
|
Run tests:
spec/defines/sudo_spec.rb#L93
sudo::conf when creating a sudo entry with single number priority is expected to contain Exec[sudo-syntax-check for file /etc/sudoers.d/05_admins] with command => "visudo -c || ( rm -f '/etc/sudoers.d/05_admins' && exit 1)" and refreshonly => "true"
Failure/Error:
is_expected.to contain_exec("sudo-syntax-check for file #{params[:sudo_config_dir]}/0#{params[:priority]}_#{title}").with(
command: "visudo -c || ( rm -f '#{params[:sudo_config_dir]}/0#{params[:priority]}_#{title}' && exit 1)",
refreshonly: 'true'
)
Puppet::PreformattedError:
Evaluation Error: Optional-Type[] accepts 1 argument. Got 2 (file: /home/runner/work/puppet-sudo/puppet-sudo/spec/fixtures/modules/sudo/manifests/conf.pp, line: 40, column: 3) on node fv-az774-224.j3qnnsaxsfoepktz21rketxmog.bx.internal.cloudapp.net
|
Run tests:
spec/defines/sudo_spec.rb#L100
sudo::conf when creating a sudo entry with single number priority is expected to contain File[05_admins] that notifies Exec[sudo-syntax-check for file /etc/sudoers.d/05_admins]
Failure/Error: it { is_expected.to contain_file(filename).that_notifies("Exec[sudo-syntax-check for file #{params[:sudo_config_dir]}/0#{params[:priority]}_#{title}]") }
Puppet::PreformattedError:
Evaluation Error: Optional-Type[] accepts 1 argument. Got 2 (file: /home/runner/work/puppet-sudo/puppet-sudo/spec/fixtures/modules/sudo/manifests/conf.pp, line: 40, column: 3) on node fv-az774-224.j3qnnsaxsfoepktz21rketxmog.bx.internal.cloudapp.net
|
Run tests:
spec/defines/sudo_spec.rb#L101
sudo::conf when creating a sudo entry with single number priority is expected not to contain File[05_admins] that requires Exec[sudo-syntax-check for file /etc/sudoers.d/05_admins]
Failure/Error: it { is_expected.not_to contain_file(filename).that_requires("Exec[sudo-syntax-check for file #{params[:sudo_config_dir]}/0#{params[:priority]}_#{title}]") }
Puppet::PreformattedError:
Evaluation Error: Optional-Type[] accepts 1 argument. Got 2 (file: /home/runner/work/puppet-sudo/puppet-sudo/spec/fixtures/modules/sudo/manifests/conf.pp, line: 40, column: 3) on node fv-az774-224.j3qnnsaxsfoepktz21rketxmog.bx.internal.cloudapp.net
|
Loading