Sha256: f58f2b24f5d2ba76a695fa1ec5d66baecc950acdd70ce610c3ea9a622b352053

Contents?: true

Size: 471 Bytes

Versions: 34

Compression:

Stored size: 471 Bytes

Contents

require 'spec_helper'

include SpecInfra::Helper::RedHat

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 "getent 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

34 entries across 34 versions & 1 rubygems

Version Path
serverspec-0.14.4 spec/redhat/group_spec.rb
serverspec-0.14.3 spec/redhat/group_spec.rb
serverspec-0.14.2 spec/redhat/group_spec.rb
serverspec-0.14.1 spec/redhat/group_spec.rb
serverspec-0.14.0 spec/redhat/group_spec.rb
serverspec-0.13.7 spec/redhat/group_spec.rb
serverspec-0.13.6 spec/redhat/group_spec.rb
serverspec-0.13.5 spec/redhat/group_spec.rb
serverspec-0.13.4 spec/redhat/group_spec.rb
serverspec-0.13.3 spec/redhat/group_spec.rb
serverspec-0.13.2 spec/redhat/group_spec.rb
serverspec-0.13.1 spec/redhat/group_spec.rb
serverspec-0.13.0 spec/redhat/group_spec.rb
serverspec-0.12.0 spec/redhat/group_spec.rb