]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
(IAC-1143) Adding temporary workaround for facter failures.
authorsheena <sheena@puppet.com>
Mon, 14 Sep 2020 12:33:30 +0000 (13:33 +0100)
committersheena <sheena@puppet.com>
Mon, 14 Sep 2020 12:33:30 +0000 (13:33 +0100)
spec/unit/facter/apt_dist_has_updates_spec.rb

index 216050d035a93574f9a2fab27a4f12eacc745005..7846632a5ae20b9bfaf4c6fc2cf8ca10f28da815 100644 (file)
@@ -7,6 +7,8 @@ describe 'apt_has_dist_updates fact' do
 
   describe 'on non-Debian distro' do
     before(:each) do
+      # Adding temporary workaround for this ticket https://tickets.puppetlabs.com/browse/IAC-1143
+      Facter.clear
       allow(Facter.fact(:osfamily)).to receive(:value).once.and_return('Redhat')
     end
     it { is_expected.to be_nil }