Skip to content

Commit

Permalink
remove check for unsupported osfamily fact and puppet error
Browse files Browse the repository at this point in the history
  • Loading branch information
zilchms committed Feb 13, 2024
1 parent 99cacca commit 762c88d
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -365,20 +365,6 @@
end.to raise_error(Puppet::PreformattedError, %r{expects a value of type Undef or Integer\[1})
end
end

context 'when osfamily is unsupported' do
let :facts do
{ osfamily: 'Unsupported',
operatingsystemmajrelease: '9',
monit_version: '5' }
end

it 'fails' do
expect do
is_expected.to contain_class('monit')
end.to raise_error(Puppet::Error, %r{monit supports osfamilies Debian and RedHat\. Detected osfamily is <Unsupported>\.})
end
end
end

describe 'variable type and content validations' do
Expand Down

0 comments on commit 762c88d

Please sign in to comment.