[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 0.25.4-89-gcbbd363

James Turnbull james at lovedthanlost.net
Tue May 18 09:03:34 UTC 2010


The following commit has been merged in the upstream branch:
commit 55f6239d8efeb08e5a3d99c70257f9979432c16d
Author: James Turnbull <james at lovedthanlost.net>
Date:   Sat Jan 30 11:10:16 2010 +1100

    Minor unit test fixes

diff --git a/test/lib/puppettest/support/utils.rb b/test/lib/puppettest/support/utils.rb
index 655308d..64e977e 100644
--- a/test/lib/puppettest/support/utils.rb
+++ b/test/lib/puppettest/support/utils.rb
@@ -154,7 +154,7 @@ end
 module PuppetTest
     include PuppetTest::Support::Utils
 
-    def self.fakedata(dir,pat='*')
+    def fakedata(dir,pat='*')
         glob = "#{basedir}/test/#{dir}/#{pat}"
         files = Dir.glob(glob,File::FNM_PATHNAME)
         raise Puppet::DevError, "No fakedata matching #{glob}" if files.empty?
diff --git a/test/util/settings.rb b/test/util/settings.rb
index c9e3245..1ec8cee 100755
--- a/test/util/settings.rb
+++ b/test/util/settings.rb
@@ -463,7 +463,7 @@ yay = /a/path
 
     def test_correct_type_assumptions
         file = Puppet::Util::Settings::FileSetting
-        element = Puppet::Util::Settings::Setting
+        setting = Puppet::Util::Settings::Setting
         bool = Puppet::Util::Settings::BooleanSetting
 
         # We have to keep these ordered, unfortunately.
@@ -472,8 +472,8 @@ yay = /a/path
             ["true", bool],
             [true, bool],
             ["false", bool],
-            ["server", element],
-            ["http://$server/yay", element],
+            ["server", setting],
+            ["http://$server/yay", setting],
             ["$server/yayness", file],
             ["$server/yayness.conf", file]
         ].each do |ary|
@@ -483,7 +483,7 @@ yay = /a/path
             assert_nothing_raised {
                 config.setdefaults(:yayness, name => { :default => value, :desc => name.to_s})
             }
-            elem = config.element(name)
+            elem = config.setting(name)
 
             assert_instance_of(type, elem,
                 "%s got created as wrong type" % value.inspect)
@@ -529,7 +529,7 @@ yay = /a/path
         assert_nothing_raised do
             config.setdefaults :test, :blocktest => {:default => "yay", :desc => "boo", :hook => proc { |value| testing = value }}
         end
-        elem = config.element(:blocktest)
+        elem = config.setting(:blocktest)
 
         assert_nothing_raised do
             assert_equal("yay", elem.value)

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list