Sha256: b5704ca82db976c0cf879ec49e29d2aba829dedca51f1d28a02f92a82337dfdc

Contents?: true

Size: 977 Bytes

Versions: 87

Compression:

Stored size: 977 Bytes

Contents

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

Version data entries

87 entries across 87 versions & 4 rubygems

Version Path
serverspec-2.12.0 spec/type/darwin/file_spec.rb
serverspec-2.11.0 spec/type/darwin/file_spec.rb
serverspec-2.10.2 spec/type/darwin/file_spec.rb
serverspec-2.10.1 spec/type/darwin/file_spec.rb
serverspec-2.10.0 spec/type/darwin/file_spec.rb
serverspec-2.9.1 spec/type/darwin/file_spec.rb
serverspec-2.9.0 spec/type/darwin/file_spec.rb
serverspec-2.8.2 spec/type/darwin/file_spec.rb
serverspec-2.8.1 spec/type/darwin/file_spec.rb
serverspec-2.8.0 spec/type/darwin/file_spec.rb
serverspec-2.7.2 spec/type/darwin/file_spec.rb
serverspec-2.7.1 spec/type/darwin/file_spec.rb
serverspec-2.7.0 spec/type/darwin/file_spec.rb
serverspec-2.6.0 spec/type/darwin/file_spec.rb
serverspec-2.5.0 spec/type/darwin/file_spec.rb
serverspec-2.4.0 spec/type/darwin/file_spec.rb
serverspec-2.3.1 spec/type/darwin/file_spec.rb
serverspec-2.3.0 spec/type/darwin/file_spec.rb
serverspec-2.2.0 spec/type/darwin/file_spec.rb
serverspec-clc-2.1.0 spec/type/darwin/file_spec.rb