Sha256: e79316183e2ebc8c4961682641b0667958732fcfc9ded6ee6e7f31a93881229d

Contents?: true

Size: 471 Bytes

Versions: 42

Compression:

Stored size: 471 Bytes

Contents

require 'spec_helper'

include SpecInfra::Helper::Solaris10

describe group('root') do
  it { should exist }
  its(:command) { should eq "getent group | grep -w -- 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

42 entries across 42 versions & 1 rubygems

Version Path
serverspec-1.16.0 spec/solaris10/group_spec.rb
serverspec-1.15.0 spec/solaris10/group_spec.rb
serverspec-1.14.0 spec/solaris10/group_spec.rb
serverspec-1.13.0 spec/solaris10/group_spec.rb
serverspec-1.12.0 spec/solaris10/group_spec.rb
serverspec-1.11.0 spec/solaris10/group_spec.rb
serverspec-1.10.0 spec/solaris10/group_spec.rb
serverspec-1.9.1 spec/solaris10/group_spec.rb
serverspec-1.9.0 spec/solaris10/group_spec.rb
serverspec-1.8.0 spec/solaris10/group_spec.rb
serverspec-1.7.1 spec/solaris10/group_spec.rb
serverspec-1.7.0 spec/solaris10/group_spec.rb
serverspec-1.6.0 spec/solaris10/group_spec.rb
serverspec-1.5.0 spec/solaris10/group_spec.rb
serverspec-1.4.2 spec/solaris10/group_spec.rb
serverspec-1.4.1 spec/solaris10/group_spec.rb
serverspec-1.4.0 spec/solaris10/group_spec.rb
serverspec-1.3.0 spec/solaris10/group_spec.rb
serverspec-1.2.0 spec/solaris10/group_spec.rb
serverspec-1.1.0 spec/solaris10/group_spec.rb