check one file for syntax and rm params fixes #223 #141
Annotations
10 errors
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'
)
expected that the catalogue would contain Exec[sudo-syntax-check for file /etc/sudoers.d/10_admins]
|
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}]") }
expected that the catalogue would contain File[10_admins] with that notifies Exec[sudo-syntax-check for file /etc/sudoers.d/10_admins]
|
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'
)
expected that the catalogue would contain Exec[sudo-syntax-check for file /etc/sudoers.d/05_admins]
|
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}]") }
expected that the catalogue would contain File[05_admins] with that notifies Exec[sudo-syntax-check for file /etc/sudoers.d/05_admins]
|
Run tests:
spec/defines/sudo_spec.rb#L133
sudo::conf when creating a sudo entry with whitespace in name is expected to contain Exec[sudo-syntax-check for file /etc/sudoers.d/05_admins hq] with command => "visudo -c || ( rm -f '/etc/sudoers.d/05_admins_hq' && 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 '#{file_path}' && exit 1)",
refreshonly: 'true'
)
expected that the catalogue would contain Exec[sudo-syntax-check for file /etc/sudoers.d/05_admins hq]
|
Run tests:
spec/defines/sudo_spec.rb#L140
sudo::conf when creating a sudo entry with whitespace in name is expected to contain File[05_admins hq] that notifies Exec[sudo-syntax-check for file /etc/sudoers.d/05_admins hq]
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}]") }
expected that the catalogue would contain File[05_admins hq] with that notifies Exec[sudo-syntax-check for file /etc/sudoers.d/05_admins hq]
|
Run tests:
spec/defines/sudo_spec.rb#L236
sudo::conf when adding a sudo entry with a suffix _foobar is expected to contain Exec[sudo-syntax-check for file /etc/sudoers.d/10_admins_foobar]
Failure/Error: is_expected.to contain_exec('sudo-syntax-check for file /etc/sudoers.d/10_admins_foobar')
expected that the catalogue would contain Exec[sudo-syntax-check for file /etc/sudoers.d/10_admins_foobar]
|
Run tests:
spec/defines/sudo_spec.rb#L265
sudo::conf when adding a sudo entry with a prefix alpha_ is expected to contain Exec[sudo-syntax-check for file /etc/sudoers.d/alpha_10_admins]
Failure/Error: is_expected.to contain_exec('sudo-syntax-check for file /etc/sudoers.d/alpha_10_admins')
expected that the catalogue would contain Exec[sudo-syntax-check for file /etc/sudoers.d/alpha_10_admins]
|
Run tests:
spec/defines/sudo_spec.rb#L294
sudo::conf when adding a sudo entry with a prefix _alpha and suffix _beta is expected to contain Exec[sudo-syntax-check for file /etc/sudoers.d/alpha_10_admins_beta]
Failure/Error: is_expected.to contain_exec('sudo-syntax-check for file /etc/sudoers.d/alpha_10_admins_beta')
expected that the catalogue would contain Exec[sudo-syntax-check for file /etc/sudoers.d/alpha_10_admins_beta]
|
Run tests
Process completed with exit code 1.
|
The logs for this run have expired and are no longer available.
Loading