Sha256: e90869f468495f88849cbf1f0a0ee55486742343045990ee17ba46dbdad23f5f

Contents?: true

Size: 569 Bytes

Versions: 10

Compression:

Stored size: 569 Bytes

Contents

# encoding: utf-8

# TODO: do not run those tests on docker yet
return if ENV['DOCKER']

# lets define our own group
root_group = 'root'

if os[:family] == 'aix'
  root_group = 'system'
elsif os[:family] == 'freebsd'
  root_group = 'wheel'
elsif os.solaris?
  root_group = 'sys'
end

if os.unix?
  describe etc_group do
    its('gids') { should_not contain_duplicates }
    its('groups') { should include root_group }
    its('users') { should include 'root' }
  end

  describe etc_group.where(name: root_group) do
    its('users') { should include 'root' }
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
inspec-0.28.1 test/integration/default/etc_group_spec.rb
inspec-0.28.0 test/integration/default/etc_group_spec.rb
inspec-0.27.1 test/integration/default/etc_group_spec.rb
inspec-0.27.0 test/integration/default/etc_group_spec.rb
inspec-0.26.0 test/integration/default/etc_group_spec.rb
inspec-0.25.0 test/integration/default/etc_group_spec.rb
inspec-0.24.0 test/integration/default/etc_group_spec.rb
inspec-0.23 test/integration/default/etc_group_spec.rb
inspec-0.22.1 test/integration/default/etc_group_spec.rb
inspec-0.22.0 test/integration/default/etc_group_spec.rb