Sha256: 103530c7adc6574d8264fca0847136276c34db356df69dc3c43bd69c1211906d

Contents?: true

Size: 567 Bytes

Versions: 85

Compression:

Stored size: 567 Bytes

Contents

require 'spec_helper'

set :os, :family => 'freebsd'

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

describe file('/sbin/nologin') do
  it { should be_linked_to '/usr/sbin/nologin' }
end

describe file('/etc/passwd') do
  let(:stdout) { Time.now.to_i.to_s }
  its(:mtime) { should > DateTime.now - 1 }
end

describe file('/etc/passwod') do
  let(:stdout) { 100.to_s }
  its(:size) { should > 0 }
end

Version data entries

85 entries across 85 versions & 4 rubygems

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