Merge pull request #171 from myii/test/fix-tests-on-BSD

test(inspec): fix `config_spec` tests on *BSD (`wheel` not `root`)
This commit is contained in:
Niels Abspoel 2019-10-27 08:54:42 +01:00 committed by GitHub
commit b6aaea6bfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,11 @@
# Overide by Platform
root_group = 'root'
if platform[:family] == 'freebsd'
root_group = 'wheel'
end
root_group =
case platform[:family]
when 'bsd'
'wheel'
else
'root'
end
control 'openssh configuration' do
title 'should match desired lines'