File: default.rb

package info (click to toggle)
serverspec-runner 1.3.9-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 220 kB
  • sloc: ruby: 463; makefile: 10
file content (26 lines) | stat: -rw-r--r-- 511 bytes parent folder | download | duplicates (4)
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
require 'spec_helper'

describe user('root') do
  it { should exist }
  it { should have_uid 0 }
  it { should have_home_directory '/root' }
end

describe group('root') do
  it { should have_gid 0 }
end

describe 'Filesystem' do
  describe file('/') do
    it { should be_mounted }
  end
end

describe host('www.google.com') do
  it { should be_resolvable }
  it { should be_reachable }
end

describe command('dmesg | grep "FAIL\|Fail\|fail\|ERROR\|Error\|error"') do
  its(:exit_status){ should_not eq 0 }
end