Sha256: 97cfd00aeb4e9ddec0237298b567c964ca45bcab4fb26dde3d70b070e909a9a7

Contents?: true

Size: 456 Bytes

Versions: 8

Compression:

Stored size: 456 Bytes

Contents

require 'spec_helper'

include SpecInfra::Helper::Solaris

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

8 entries across 8 versions & 1 rubygems

Version Path
serverspec-1.16.0 spec/solaris/group_spec.rb
serverspec-1.15.0 spec/solaris/group_spec.rb
serverspec-1.14.0 spec/solaris/group_spec.rb
serverspec-1.13.0 spec/solaris/group_spec.rb
serverspec-1.12.0 spec/solaris/group_spec.rb
serverspec-1.11.0 spec/solaris/group_spec.rb
serverspec-1.10.0 spec/solaris/group_spec.rb
serverspec-1.9.1 spec/solaris/group_spec.rb