Skip to content

Commit

Permalink
add support for el8
Browse files Browse the repository at this point in the history
  • Loading branch information
faxm0dem committed Feb 19, 2020
1 parent ac5a7cd commit da63178
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"operatingsystemrelease": [
"5",
"6",
"7"
"7",
"8"
]
},
{
Expand Down
6 changes: 6 additions & 0 deletions spec/classes/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@
' ],',
])
end
when '8'
it {
is_expected.to contain_file('/usr/share/perl5/vendor_perl/CPAN/Config.pm').with_owner('root')
is_expected.to contain_file('/usr/share/perl5/vendor_perl/CPAN/Config.pm').with_group('root')
is_expected.to contain_file('/usr/share/perl5/vendor_perl/CPAN/Config.pm').with_mode('0644')
}
end
end
end
Expand Down
16 changes: 16 additions & 0 deletions spec/types/cpan_spec_minimal.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
require 'spec_helper'

described_type = Puppet::Type.type(:cpan)

describe 'cpan' do
let(:title) { 'baz' }

describe 'force' do
it 'rejects other values (rspec)' do
expect { described_type.new(name: 'test', force: 'nope') }.to raise_error(Puppet::Error)
end
it 'rejects other values (be_valid_type)' do
expect {be_valid_type.with_set_attributes({:force => 'nope'})}.to raise_error(Puppet::Error)
end
end
end

0 comments on commit da63178

Please sign in to comment.