forked from voxpupuli/puppet-jenkins
/
mount_spec.rb
42 lines (34 loc) · 830 Bytes
/
mount_spec.rb
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
42
require 'spec_helper'
describe 'autofs::mount', :type => :define do
let(:title) { 'auto.home' }
let(:facts) do
{
:concat_basedir => '/etc'
}
end
let(:params) do
{
:mount => '/home',
:mapfile => '/etc/auto.home',
:mapcontents => %W( test foo bar ),
:options => '--timeout=120',
:order => '01'
}
end
context 'with default parameters' do
it do
should contain_concat__fragment('autofs::fragment preamble /home').with('target' => '/etc/auto.master')
end
it do
should contain_file('/home').with('ensure' => 'directory')
end
it do
should contain_file('/etc/auto.home').with(
'ensure' => 'present',
'owner' => 'root',
'group' => 'root',
'mode' => '0644'
)
end
end
end