Sha256: 29d629a6ceb9d0804a8affef758ffe3be90b30b12f08ed9848d1c760214b7557

Contents?: true

Size: 568 Bytes

Versions: 9

Compression:

Stored size: 568 Bytes

Contents

# 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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
inspec-0.9.8 test/integration/test/integration/default/group_spec.rb
inspec-0.9.7 test/integration/test/integration/default/group_spec.rb
inspec-0.9.6 test/integration/test/integration/default/group_spec.rb
inspec-0.9.5 test/integration/test/integration/default/group_spec.rb
inspec-0.9.4 test/integration/test/integration/default/group_spec.rb
inspec-0.9.3 test/integration/test/integration/default/group_spec.rb
inspec-0.9.2 test/integration/default/group_spec.rb
inspec-0.9.1 test/integration/default/group_spec.rb
inspec-0.9.0 test/integration/default/group_spec.rb