Sha256: b7a1320affcec70227d7ad01e4e889317b380312af0950968d416318ff7cae67

Contents?: true

Size: 473 Bytes

Versions: 33

Compression:

Stored size: 473 Bytes

Contents

require 'spec_helper'

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

33 entries across 33 versions & 1 rubygems

Version Path
serverspec-0.11.5 spec/solaris11/group_spec.rb
serverspec-0.11.4 spec/solaris11/group_spec.rb
serverspec-0.11.3 spec/solaris11/group_spec.rb
serverspec-0.11.2 spec/solaris11/group_spec.rb
serverspec-0.9.4 spec/solaris11/group_spec.rb
serverspec-0.9.3 spec/solaris11/group_spec.rb
serverspec-0.9.2 spec/solaris11/group_spec.rb
serverspec-0.9.1 spec/solaris11/group_spec.rb
serverspec-0.9.0 spec/solaris11/group_spec.rb
serverspec-0.8.1 spec/solaris11/group_spec.rb
serverspec-0.8.0 spec/solaris11/group_spec.rb
serverspec-0.7.13 spec/solaris11/group_spec.rb
serverspec-0.7.12 spec/solaris11/group_spec.rb
serverspec-0.7.11 spec/solaris11/group_spec.rb
serverspec-0.7.10 spec/solaris11/group_spec.rb
serverspec-0.7.9 spec/solaris11/group_spec.rb
serverspec-0.7.8 spec/solaris11/group_spec.rb
serverspec-0.7.7 spec/solaris11/group_spec.rb
serverspec-0.7.6 spec/solaris11/group_spec.rb
serverspec-0.7.5 spec/solaris11/group_spec.rb