|
17 | 17 | it { should exist } |
18 | 18 | it { should be_file } |
19 | 19 | its('content') { should match(%r{# To manually add resources to the bashrc, create a file in the \~\/\.bashrc\.d folder and add your changes there\.}) } |
20 | | - its('mode') { should cmp '0640' } |
| 20 | + its('mode') { should cmp '0770' } |
21 | 21 | its('owner') { should eq 'root' } |
| 22 | + its('group') { should eq 'root' } |
22 | 23 | end |
23 | 24 |
|
24 | 25 | describe file('/etc/skel/.bashrc.d') do |
25 | 26 | it { should exist } |
26 | 27 | it { should be_directory } |
27 | | - its('mode') { should cmp '0640' } |
| 28 | + its('mode') { should cmp '0770' } |
28 | 29 | its('owner') { should eq 'root' } |
| 30 | + its('group') { should eq 'root' } |
29 | 31 | end |
30 | 32 |
|
31 | 33 | describe file('/etc/skel/.bashrc.d/000-init') do |
32 | 34 | it { should exist } |
33 | 35 | it { should be_file } |
34 | 36 | its('content') { should match(%r{# \~\/\.bashrc: executed by bash\(1\) for non-login shells\.}) } |
35 | | - its('mode') { should cmp '0640' } |
| 37 | + its('mode') { should cmp '0770' } |
36 | 38 | its('owner') { should eq 'root' } |
| 39 | + its('group') { should eq 'root' } |
37 | 40 | end |
38 | 41 |
|
39 | 42 | describe file('/etc/skel/.bashrc.d/100-content') do |
40 | 43 | it { should exist } |
41 | 44 | it { should be_file } |
42 | 45 | its('content') { should match('just some test') } |
43 | | - its('mode') { should cmp '0640' } |
| 46 | + its('mode') { should cmp '0770' } |
44 | 47 | its('owner') { should eq 'root' } |
| 48 | + its('group') { should eq 'root' } |
45 | 49 | end |
46 | 50 |
|
47 | 51 | describe file('/etc/skel/.bashrc.d/200-file') do |
48 | 52 | it { should exist } |
49 | 53 | it { should be_file } |
50 | 54 | its('content') { should match('just some test file') } |
51 | | - its('mode') { should cmp '0640' } |
| 55 | + its('mode') { should cmp '0770' } |
52 | 56 | its('owner') { should eq 'root' } |
| 57 | + its('group') { should eq 'root' } |
53 | 58 | end |
54 | 59 |
|
55 | 60 | describe file('/etc/skel/.bashrc.d/300-template') do |
56 | 61 | it { should exist } |
57 | 62 | it { should be_file } |
58 | 63 | its('content') { should match('just some test template') } |
59 | | - its('mode') { should cmp '0640' } |
| 64 | + its('mode') { should cmp '0770' } |
60 | 65 | its('owner') { should eq 'root' } |
| 66 | + its('group') { should eq 'root' } |
61 | 67 | end |
62 | 68 | describe file('/etc/skel/.bashrc.d/400-content') do |
63 | 69 | it { should_not exist } |
|
70 | 76 | it { should exist } |
71 | 77 | it { should be_file } |
72 | 78 | its('content') { should match(%r{# To manually add resources to the bashrc, create a file in the \~\/\.bashrc\.d folder and add your changes there\.}) } |
73 | | - its('mode') { should cmp '0640' } |
| 79 | + its('mode') { should cmp '0770' } |
74 | 80 | its('owner') { should eq 'user1' } |
| 81 | + its('group') { should eq 'user1' } |
75 | 82 | end |
76 | 83 |
|
77 | 84 | describe file('/home/user1/.bashrc.d') do |
78 | 85 | it { should exist } |
79 | 86 | it { should be_directory } |
80 | | - its('mode') { should cmp '0640' } |
| 87 | + its('mode') { should cmp '0770' } |
81 | 88 | its('owner') { should eq 'user1' } |
| 89 | + its('group') { should eq 'user1' } |
82 | 90 | end |
83 | 91 |
|
84 | 92 | describe file('/home/user1/.bashrc.d/000-init') do |
85 | 93 | it { should exist } |
86 | 94 | it { should be_file } |
87 | 95 | its('content') { should match(%r{# \~\/\.bashrc: executed by bash\(1\) for non-login shells\.}) } |
88 | | - its('mode') { should cmp '0640' } |
| 96 | + its('mode') { should cmp '0770' } |
89 | 97 | its('owner') { should eq 'user1' } |
| 98 | + its('group') { should eq 'user1' } |
90 | 99 | end |
91 | 100 |
|
92 | 101 | describe file('/home/user1/.bashrc.d/100-content') do |
93 | 102 | it { should exist } |
94 | 103 | it { should be_file } |
95 | 104 | its('content') { should match('just some test') } |
96 | | - its('mode') { should cmp '0640' } |
| 105 | + its('mode') { should cmp '0770' } |
97 | 106 | its('owner') { should eq 'user1' } |
| 107 | + its('group') { should eq 'user1' } |
98 | 108 | end |
99 | 109 |
|
100 | 110 | describe file('/home/user1/.bashrc.d/200-file') do |
101 | 111 | it { should exist } |
102 | 112 | it { should be_file } |
103 | 113 | its('content') { should match('just some test file') } |
104 | | - its('mode') { should cmp '0640' } |
| 114 | + its('mode') { should cmp '0770' } |
105 | 115 | its('owner') { should eq 'user1' } |
| 116 | + its('group') { should eq 'user1' } |
106 | 117 | end |
107 | 118 |
|
108 | 119 | describe file('/home/user1/.bashrc.d/300-template') do |
109 | 120 | it { should exist } |
110 | 121 | it { should be_file } |
111 | 122 | its('content') { should match('just some test template') } |
112 | | - its('mode') { should cmp '0640' } |
| 123 | + its('mode') { should cmp '0770' } |
113 | 124 | its('owner') { should eq 'user1' } |
| 125 | + its('group') { should eq 'user1' } |
114 | 126 | end |
115 | 127 | describe file('/home/user1/.bashrc.d/400-content') do |
116 | 128 | it { should_not exist } |
|
0 commit comments