Skip to content

Commit 4dbea11

Browse files
committed
Fix broken test with legacy facts
unblocks #68 and #78 (in that order)
1 parent bc69a7f commit 4dbea11

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

spec/defines/trusted_ca_ca_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@
3131
end
3232

3333
context 'ca cert' do
34-
case facts[:osfamily]
34+
case facts[:os]['family']
3535
when 'RedHat'
36-
source = 'puppet:///data/mycert.crt'
3736
file = '/etc/pki/ca-trust/source/anchors/mycert.crt'
3837
notify = 'Exec[validate /etc/pki/ca-trust/source/anchors/mycert.crt]'
39-
when 'Debian'
4038
source = 'puppet:///data/mycert.crt'
39+
when 'Debian'
4140
file = '/usr/local/share/ca-certificates/mycert.crt'
4241
notify = 'Exec[validate /usr/local/share/ca-certificates/mycert.crt]'
42+
source = 'puppet:///data/mycert.crt'
4343
when 'Suse'
4444
if facts[:operatingsystem] == 'SLES'
4545
if facts[:operatingsystemmajrelease] == '11'

0 commit comments

Comments
 (0)