[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 0.25.5-639-g8f94f35

Jesse Wolfe jes5199 at gmail.com
Wed Jul 14 10:29:58 UTC 2010


The following commit has been merged in the upstream branch:
commit d9920bc4fdad38c7c753bf9cc137c064c33ae7a6
Author: Jesse Wolfe <jes5199 at gmail.com>
Date:   Mon Mar 22 13:32:49 2010 -0700

    Bug #3400 Bad mocks causing failing tests
    
    New code was calling a mocked method that was stubbed too broadly,
    causing the whole thing to act strangely.
    I've tightened the existing stub and stubbed the new method call.

diff --git a/spec/unit/ssl/host.rb b/spec/unit/ssl/host.rb
index 6d72490..f6f06a9 100755
--- a/spec/unit/ssl/host.rb
+++ b/spec/unit/ssl/host.rb
@@ -566,7 +566,9 @@ describe Puppet::SSL::Host do
             @store.stub_everything
             OpenSSL::X509::Store.stubs(:new).returns @store
 
-            Puppet.settings.stubs(:value).returns "ssl_host_testing"
+            Puppet.settings.stubs(:value).with(:localcacert).returns "ssl_host_testing"
+
+            Puppet::SSL::CertificateRevocationList.stubs(:find).returns(nil)
         end
 
         it "should accept a purpose" do

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list