Sha256: 6ee5647369e91fc24fcb79ff1cc0e6ef1056af7a841aa8a0626cefa3253b6d2c

Contents?: true

Size: 472 Bytes

Versions: 2

Compression:

Stored size: 472 Bytes

Contents

require 'spec_helper'

include Serverspec::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

2 entries across 2 versions & 1 rubygems

Version Path
serverspec-0.11.5 spec/solaris10/group_spec.rb
serverspec-0.11.4 spec/solaris10/group_spec.rb