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 36c2cb7
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -366,19 +366,6 @@
end
end

Check failure on line 368 in spec/classes/init_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body end. (https://rubystyle.guide#empty-lines-around-bodies)
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 36c2cb7

Please sign in to comment.