Skip to content

Commit

Permalink
linting, fixed missing end in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-krieger committed Dec 28, 2023
1 parent c6aa68d commit aac7c5c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
1 change: 0 additions & 1 deletion manifests/auditd_cron.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#
# @param ensure
# Whether the cron job should be present or absent.
#
# @param dirs_to_include
# A list of directories to search
# @param start_time_minute
Expand Down
3 changes: 0 additions & 3 deletions manifests/sticky_world_writable_cron.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@
#
# @param ensure
# Whether the cron job should be present or absent.
#
# @param dirs_to_exclude
# Array of directories to exclude from search.
#
# @param filename
# The file to write data to
#
# @param script
# The script to run
#
Expand Down
12 changes: 6 additions & 6 deletions spec/classes/cis_security_hardening_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
is_expected.to contain_class('cis_security_hardening::auditd_cron')

unless os_facts[:os]['name'].casecmp('ubuntu').zero? ||
os_facts[:os]['name'].casecmp('debian').zero? ||
os_facts[:os]['name'].casecmp('centos').zero? ||
os_facts[:os]['name'].casecmp('redhat').zero? ||
os_facts[:os]['name'].casecmp('almalinux').zero? ||
os_facts[:os]['name'].casecmp('rocky').zero? ||
os_facts[:os]['name'].casecmp('sles').zero?
os_facts[:os]['name'].casecmp('debian').zero? ||
os_facts[:os]['name'].casecmp('centos').zero? ||
os_facts[:os]['name'].casecmp('redhat').zero? ||
os_facts[:os]['name'].casecmp('almalinux').zero? ||
os_facts[:os]['name'].casecmp('rocky').zero? ||
os_facts[:os]['name'].casecmp('sles').zero?

is_expected.to contain_echo('no bundles')
.with(
Expand Down
1 change: 1 addition & 0 deletions spec/classes/sticky_world_writabe_cron_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
'filename' => '/usr/share/cis_security_hardening/data/world-writable-files.txt',
'script' => '/usr/share/cis_security_hardening/bin/sticy-world-writable.sh',
}
end

it do
is_expected.to compile.with_all_deps
Expand Down

0 comments on commit aac7c5c

Please sign in to comment.