]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
Merge pull request #303 from apenney/fix-ubuntu-10-tests
authorMorgan Haskel <morgan@puppetlabs.com>
Thu, 29 May 2014 17:07:38 +0000 (13:07 -0400)
committerMorgan Haskel <morgan@puppetlabs.com>
Thu, 29 May 2014 17:07:38 +0000 (13:07 -0400)
Fix the tests for Ubuntu 10.04.

spec/acceptance/apt_key_provider_spec.rb
spec/acceptance/force_spec.rb

index 9becd2568419af3ac59f9c5e82ce78ba0dc2ae6f..0a314959577c953ed7b99a8a3519de4c2986ce57 100644 (file)
@@ -203,7 +203,7 @@ ugVIB2pi+8u84f+an4Hml4xlyijgYu05pqNvnLRyJDLd61hviLC8GYU=
         EOS
 
         apply_manifest(pp, :expect_failures => true) do |r|
-          expect(r.stderr).to match(/Host not found/)
+          expect(r.stderr).to match(/(Host not found|Couldn't resolve host)/)
         end
       end
     end
index a43902300d7c0c1067db5660ee82396186eda631..5f4dec3fc76487705b147c368a3563bf194da2e3 100644 (file)
@@ -59,7 +59,7 @@ describe 'apt::force define', :unless => UNSUPPORTED_PLATFORMS.include?(fact('os
     it 'should work with no errors' do
       pp = <<-EOS
       include apt
-      apt::force { 'vim': timeout => '1' }
+      apt::force { 'ocaml': timeout => '1' }
       EOS
 
       shell('apt-get clean')
@@ -68,7 +68,7 @@ describe 'apt::force define', :unless => UNSUPPORTED_PLATFORMS.include?(fact('os
       end
     end
 
-    describe package('vim') do
+    describe package('ocaml') do
       it { should_not be_installed }
     end
   end