Skip to content

Commit

Permalink
Fix Debian 11 unit test
Browse files Browse the repository at this point in the history
Co-authored-by: Romain Tartière <romain@blogreen.org>
  • Loading branch information
FlorentPoinsaut and smortex authored Mar 16, 2022
1 parent 16c5559 commit 50bca89
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions spec/classes/repository_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@

context 'with default values for all parameters' do
if (facts[:osfamily] == 'Debian') && (facts[:operatingsystemmajrelease] == '11')
it 'fails' do
expect { is_expected.to contain_class('bareos::repository') }.
to raise_error(Puppet::PreformattedError, %r{is not distributed for})
end
it { is_expected.to compile.and_raise_error(%r{is not distributed for}) }
else
it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_class('bareos::repository') }
Expand Down

0 comments on commit 50bca89

Please sign in to comment.