From 36c2cb7873b0641bfad2afbdcb244a51e19ebcb5 Mon Sep 17 00:00:00 2001 From: markuszilch Date: Tue, 13 Feb 2024 01:03:36 +0100 Subject: [PATCH] remove check for unsupported osfamily fact and puppet error --- spec/classes/init_spec.rb | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/spec/classes/init_spec.rb b/spec/classes/init_spec.rb index b549d07..534c40c 100644 --- a/spec/classes/init_spec.rb +++ b/spec/classes/init_spec.rb @@ -366,19 +366,6 @@ 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 \.}) - end - end end describe 'variable type and content validations' do