inspec/test/integration/default/group_spec.rb

60 lines
1.1 KiB
Ruby
Raw Normal View History

2015-10-23 20:26:31 +00:00
# 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
2016-01-28 13:51:54 +00:00
elsif os[:family] == 'freebsd'
2015-10-23 20:26:31 +00:00
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
2016-01-28 13:51:54 +00:00
elsif os[:family] == 'aix'
2015-12-19 00:57:06 +00:00
describe group('system') do
it { should exist }
its('gid') { should eq 0 }
end
describe group('bin') do
it { should exist }
its('gid') { should eq 2 }
end
2016-01-28 13:51:54 +00:00
describe group('noroot') do
it { should_not exist }
its('gid') { should eq nil }
end
elsif os.solaris?
describe group('root') do
it { should exist }
its('gid') { should eq 0 }
end
describe group('bin') do
it { should exist }
its('gid') { should eq 2 }
end
2015-12-19 00:57:06 +00:00
describe group('noroot') do
it { should_not exist }
its('gid') { should eq nil }
end
end