Sha256: 74a73a4ce55bf278cd0ebb08e68530403ecd53c2bd867eb3744f3093d43b4009
Contents?: true
Size: 473 Bytes
Versions: 33
Compression:
Stored size: 473 Bytes
Contents
require 'spec_helper' include Serverspec::Helper::Debian 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
33 entries across 33 versions & 1 rubygems