test(inspec): fix `config_spec` tests on *BSD (`wheel` not `root`)

This commit is contained in:
Imran Iqbal 2019-10-27 00:02:33 +01:00
parent 5d3f92c05a
commit 047b753a9e
No known key found for this signature in database
GPG Key ID: 6D8629439D2B7819
1 changed files with 7 additions and 4 deletions

View File

@ -1,7 +1,10 @@
# Overide by Platform
root_group = 'root'
if platform[:family] == 'freebsd'
root_group = 'wheel'
root_group =
case platform[:family]
when 'bsd'
'wheel'
else
'root'
end
control 'openssh configuration' do