File tree Expand file tree Collapse file tree
test/integration/default/controls Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,13 +66,15 @@ Arch: {}
6666Alpine : {}
6767
6868FreeBSD :
69+ rootgroup : wheel
6970 pkg :
7071 name : node
7172 source :
7273 # node-v16.13.0.tar.gz ????
7374 source_hash : 9c00e5b6024cfcbc9105f9c58cf160762e78659a345d100c5bd80a7fb38c684f
7475
7576OpenBSD :
77+ rootgroup : wheel
7678 pkg :
7779 name : node
7880 source :
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
3+ # Overide by Platform
4+ root_group =
5+ case platform [ :family ]
6+ when 'bsd'
7+ 'wheel'
8+ else
9+ 'root'
10+ end
11+
312control 'node configuration' do
413 title 'should match desired lines'
514
615 describe file ( '/etc/npmrc' ) do
716 it { should be_file }
817 it { should be_owned_by 'root' }
9- it { should be_grouped_into 'root' }
18+ it { should be_grouped_into root_group }
1019 its ( 'mode' ) { should cmp '0640' }
1120 its ( 'content' ) { should include 'prefix = /home/vagrant/.npm-packages' }
1221 end
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
3+ # Overide by Platform
4+ root_group =
5+ case platform [ :family ]
6+ when 'bsd'
7+ 'wheel'
8+ else
9+ 'root'
10+ end
11+
312control 'node configuration environment' do
413 title 'should match desired lines'
514
615 describe file ( '/etc/default/node.sh' ) do
716 it { should be_file }
817 it { should be_owned_by 'root' }
9- it { should be_grouped_into 'root' }
18+ it { should be_grouped_into root_group }
1019 its ( 'mode' ) { should cmp '0640' }
1120 end
1221end
You can’t perform that action at this time.
0 commit comments