Skip to content

Commit

Permalink
test(config_spec): update for Arch
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Sep 23, 2019
1 parent 0f083fb commit c852da7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/integration/default/controls/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@
title 'should match desired lines'

config_file =
case os[:family]
case platform[:family]
when 'debian', 'suse'
'/etc/vsftpd.conf'
when 'redhat', 'fedora'
'/etc/vsftpd/vsftpd.conf'
# Catch remaining `linux` platforms to identify by `name` at the end
when 'linux'
case platform[:name]
when 'arch'
'/etc/vsftpd.conf'
end
end

describe file(config_file) do
Expand Down

0 comments on commit c852da7

Please sign in to comment.