Skip to content

Commit 1d97949

Browse files
committed
feat(openbsd): add support to work with the default suite
1 parent 0f50475 commit 1d97949

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

node/osfamilymap.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,15 @@ Arch: {}
6666
Alpine: {}
6767

6868
FreeBSD:
69+
rootgroup: wheel
6970
pkg:
7071
name: node
7172
source:
7273
# node-v16.13.0.tar.gz ????
7374
source_hash: 9c00e5b6024cfcbc9105f9c58cf160762e78659a345d100c5bd80a7fb38c684f
7475

7576
OpenBSD:
77+
rootgroup: wheel
7678
pkg:
7779
name: node
7880
source:

test/integration/default/controls/config_spec.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
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+
312
control '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
Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
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+
312
control '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
1221
end

0 commit comments

Comments
 (0)