[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 88d6cd5368668b0cf203f6363032adc8d166e876
Author: Jesse Wolfe <jes5199 at gmail.com>
Date:   Mon Mar 22 13:53:50 2010 -0700

    Bug #3401 Spec failed due to missing manditory setting in mock
    
    Puppet::Util::Settings#use now requires the :noop setting to exist, and
    this test was not providing one in its mocked default structure.

diff --git a/spec/integration/util/settings.rb b/spec/integration/util/settings.rb
index 146b988..826bfc9 100755
--- a/spec/integration/util/settings.rb
+++ b/spec/integration/util/settings.rb
@@ -7,9 +7,13 @@ require 'puppet_spec/files'
 describe Puppet::Util::Settings do
     include PuppetSpec::Files
 
+    def minimal_default_settings
+        { :noop => {:default => false, :desc => "noop"} }
+    end
+
     it "should be able to make needed directories" do
         settings = Puppet::Util::Settings.new
-        settings.setdefaults :main, :maindir => [tmpfile("main"), "a"]
+        settings.setdefaults :main, minimal_default_settings.update( :maindir => [tmpfile("main"), "a"] )
 
         settings.use(:main)
 
@@ -18,7 +22,7 @@ describe Puppet::Util::Settings do
 
     it "should make its directories with the corret modes" do
         settings = Puppet::Util::Settings.new
-        settings.setdefaults :main, :maindir => {:default => tmpfile("main"), :desc => "a", :mode => 0750}
+        settings.setdefaults :main,  minimal_default_settings.update( :maindir => {:default => tmpfile("main"), :desc => "a", :mode => 0750} )
 
         settings.use(:main)
 

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list