1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
require 'spec_helper'
set :os, :family => 'darwin'
describe file('/tmp') do
it { should be_readable.by_user('mail') }
end
describe file('/tmp') do
it { should be_writable.by_user('mail') }
end
describe file('/tmp') do
it { should be_executable.by_user('mail') }
end
describe file('/etc/services') do
let(:stdout) { "35435ea447c19f0ea5ef971837ab9ced\n" }
its(:md5sum) { should eq '35435ea447c19f0ea5ef971837ab9ced' }
end
describe file('/etc/services') do
let(:stdout) {"0c3feee1353a8459f8c7d84885e6bc602ef853751ffdbce3e3b6dfa1d345fc7a" }
its(:sha256sum) { should eq '0c3feee1353a8459f8c7d84885e6bc602ef853751ffdbce3e3b6dfa1d345fc7a' }
end
describe file('/etc/pam.d/system-auth') do
it { should be_linked_to '/etc/pam.d/system-auth-ac' }
end
describe file('/etc/passwd') do
it { should be_mode 644 }
end
describe file('/etc/passwd') do
it { should be_owned_by 'root' }
end
describe file('/etc/passwd') do
it { should be_grouped_into 'root' }
end
|