Sha256: 22464cde75ea3362eefbc262e38a7d02058efb2762e07cc25e5543aa2f3e16bd

Contents?: true

Size: 471 Bytes

Versions: 53

Compression:

Stored size: 471 Bytes

Contents

require 'spec_helper'

include Serverspec::Helper::Solaris

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

53 entries across 53 versions & 1 rubygems

Version Path
serverspec-0.11.5 spec/solaris/group_spec.rb
serverspec-0.11.4 spec/solaris/group_spec.rb
serverspec-0.11.3 spec/solaris/group_spec.rb
serverspec-0.11.2 spec/solaris/group_spec.rb
serverspec-0.11.1 spec/solaris/group_spec.rb
serverspec-0.11.0 spec/solaris/group_spec.rb
serverspec-0.10.13 spec/solaris/group_spec.rb
serverspec-0.10.12 spec/solaris/group_spec.rb
serverspec-0.10.11 spec/solaris/group_spec.rb
serverspec-0.10.10 spec/solaris/group_spec.rb
serverspec-0.10.9 spec/solaris/group_spec.rb
serverspec-0.10.8 spec/solaris/group_spec.rb
serverspec-0.10.7 spec/solaris/group_spec.rb
serverspec-0.10.6 spec/solaris/group_spec.rb
serverspec-0.10.5 spec/solaris/group_spec.rb
serverspec-0.10.4 spec/solaris/group_spec.rb
serverspec-0.10.3 spec/solaris/group_spec.rb
serverspec-0.10.2 spec/solaris/group_spec.rb
serverspec-0.10.1 spec/solaris/group_spec.rb
serverspec-0.10.0 spec/solaris/group_spec.rb