Sha256: 58420f41959facab395a276e3021d028d2afe14d9574ed47a9e3ae64979fbf26

Contents?: true

Size: 472 Bytes

Versions: 34

Compression:

Stored size: 472 Bytes

Contents

require 'spec_helper'

include SpecInfra::Helper::Solaris11

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 -- \\^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-1.9.0 spec/solaris11/group_spec.rb
serverspec-1.8.0 spec/solaris11/group_spec.rb
serverspec-1.7.1 spec/solaris11/group_spec.rb
serverspec-1.7.0 spec/solaris11/group_spec.rb
serverspec-1.6.0 spec/solaris11/group_spec.rb
serverspec-1.5.0 spec/solaris11/group_spec.rb
serverspec-1.4.2 spec/solaris11/group_spec.rb
serverspec-1.4.1 spec/solaris11/group_spec.rb
serverspec-1.4.0 spec/solaris11/group_spec.rb
serverspec-1.3.0 spec/solaris11/group_spec.rb
serverspec-1.2.0 spec/solaris11/group_spec.rb
serverspec-1.1.0 spec/solaris11/group_spec.rb
serverspec-1.0.0 spec/solaris11/group_spec.rb
serverspec-0.16.0 spec/solaris11/group_spec.rb
serverspec-0.15.5 spec/solaris11/group_spec.rb
serverspec-0.15.4 spec/solaris11/group_spec.rb
serverspec-0.15.3 spec/solaris11/group_spec.rb
serverspec-0.15.2 spec/solaris11/group_spec.rb
serverspec-0.15.1 spec/solaris11/group_spec.rb
serverspec-0.15.0 spec/solaris11/group_spec.rb