Sha256: 45901959bbd48cd26f639ba969161fef3eb233655465f7b64a8bb34156ff64ba

Contents?: true

Size: 470 Bytes

Versions: 5

Compression:

Stored size: 470 Bytes

Contents

require 'spec_helper'

include Serverspec::Helper::AIX

describe group('root') do
  it { should exist }
  its(:command) { should eq "getent group | grep -wq -- root" }
end

describe group('invalid-group') do
  it { should_not exist }
end

describe group('root') do
  it { should have_gid 0 }
  its(:command) { should eq "cat etc/group | grep -w -- \\^root | cut -f 3 -d ':' | grep -w -- 0" }
end

describe group('root') do
  it { should_not have_gid 'invalid-gid' }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-0.11.5 spec/aix/group_spec.rb
serverspec-0.11.4 spec/aix/group_spec.rb
serverspec-0.11.3 spec/aix/group_spec.rb
serverspec-0.11.2 spec/aix/group_spec.rb
serverspec-0.9.4 spec/aix/group_spec.rb