File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed
test/integration/default/controls Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -66,13 +66,15 @@ Arch: {}
66
66
Alpine : {}
67
67
68
68
FreeBSD :
69
+ rootgroup : wheel
69
70
pkg :
70
71
name : node
71
72
source :
72
73
# node-v16.13.0.tar.gz ????
73
74
source_hash : 9c00e5b6024cfcbc9105f9c58cf160762e78659a345d100c5bd80a7fb38c684f
74
75
75
76
OpenBSD :
77
+ rootgroup : wheel
76
78
pkg :
77
79
name : node
78
80
source :
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
+ # Overide by Platform
4
+ root_group =
5
+ case platform [ :family ]
6
+ when 'bsd'
7
+ 'wheel'
8
+ else
9
+ 'root'
10
+ end
11
+
3
12
control 'node configuration' do
4
13
title 'should match desired lines'
5
14
6
15
describe file ( '/etc/npmrc' ) do
7
16
it { should be_file }
8
17
it { should be_owned_by 'root' }
9
- it { should be_grouped_into 'root' }
18
+ it { should be_grouped_into root_group }
10
19
its ( 'mode' ) { should cmp '0640' }
11
20
its ( 'content' ) { should include 'prefix = /home/vagrant/.npm-packages' }
12
21
end
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
+ # Overide by Platform
4
+ root_group =
5
+ case platform [ :family ]
6
+ when 'bsd'
7
+ 'wheel'
8
+ else
9
+ 'root'
10
+ end
11
+
3
12
control 'node configuration environment' do
4
13
title 'should match desired lines'
5
14
6
15
describe file ( '/etc/default/node.sh' ) do
7
16
it { should be_file }
8
17
it { should be_owned_by 'root' }
9
- it { should be_grouped_into 'root' }
18
+ it { should be_grouped_into root_group }
10
19
its ( 'mode' ) { should cmp '0640' }
11
20
end
12
21
end
You can’t perform that action at this time.
0 commit comments