Sha256: 9730df199ccb7b88fbf95fbc9813e4bdd92d47c098f525fa98099bfd476ce521
Contents?: true
Size: 472 Bytes
Versions: 35
Compression:
Stored size: 472 Bytes
Contents
require 'spec_helper' include Serverspec::Helper::RedHat 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 -w -- \\^root | cut -f 3 -d ':' | grep -w -- 0" } end describe group('root') do it { should_not have_gid 'invalid-gid' } end
Version data entries
35 entries across 33 versions & 1 rubygems