mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
add integration test for group
This commit is contained in:
parent
a407e3b6ce
commit
a199796b5e
1 changed files with 32 additions and 0 deletions
32
test/integration/default/group_spec.rb
Normal file
32
test/integration/default/group_spec.rb
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
# encoding: utf-8
|
||||||
|
|
||||||
|
# test root group on linux
|
||||||
|
if os.linux?
|
||||||
|
describe group('root') do
|
||||||
|
it { should exist }
|
||||||
|
its('gid') { should eq 0 }
|
||||||
|
end
|
||||||
|
|
||||||
|
describe group('noroot') do
|
||||||
|
it { should_not exist }
|
||||||
|
its('gid') { should eq nil }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if os[:family] == 'freebsd'
|
||||||
|
|
||||||
|
describe group('wheel') do
|
||||||
|
it { should exist }
|
||||||
|
its('gid') { should eq 0 }
|
||||||
|
end
|
||||||
|
|
||||||
|
describe group('root') do
|
||||||
|
it { should_not exist }
|
||||||
|
its('gid') { should eq nil }
|
||||||
|
end
|
||||||
|
|
||||||
|
describe group('noroot') do
|
||||||
|
it { should_not exist }
|
||||||
|
its('gid') { should eq nil }
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue