File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ limits::manage_limits_d_dir: true
88limits::purge_limits_d_dir : true
99
1010limits::limits_file : /etc/security/limits.conf
11- limits::manage_limits_file : false
11+ limits::manage_limits_file : true
1212limits::limits_file_owner : ' root'
1313limits::limits_file_group : ' root'
1414limits::limits_file_mode : ' 0644'
Original file line number Diff line number Diff line change 2828 end
2929
3030 it do
31- is_expected . not_to contain_file ( '/etc/security/limits.conf' )
31+ is_expected . to contain_file ( '/etc/security/limits.conf' ) . with (
32+ 'ensure' => 'file' ,
33+ 'owner' => 'root' ,
34+ 'group' => 'root' ,
35+ 'mode' => '0644'
36+ )
3237 end
3338 end
3439
6166 it { is_expected . not_to contain_file ( '/etc/security/limits.d' ) }
6267 end
6368
64- describe 'with manage_limits_file set to true ' do
69+ describe 'with manage_limits_file set to false ' do
6570 let :params do
6671 {
67- manage_limits_file : true
72+ manage_limits_file : false
6873 }
6974 end
7075
7176 it do
72- is_expected . to contain_file ( '/etc/security/limits.conf' ) . with (
73- 'ensure' => 'file' ,
74- 'owner' => 'root' ,
75- 'group' => 'root' ,
76- 'mode' => '0644'
77- )
77+ is_expected . not_to contain_file ( '/etc/security/limits.conf' )
7878 end
7979 end
8080 end
You can’t perform that action at this time.
0 commit comments