Skip to content

Commit

Permalink
test(inspec): fix config_spec tests on *BSD (wheel not root)
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Oct 26, 2019
1 parent 5d3f92c commit 047b753
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test/integration/default/controls/config_spec.rb
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit 047b753

Please sign in to comment.