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

Matt Robinson matt at puppetlabs.com
Wed Jul 14 10:35:52 UTC 2010


The following commit has been merged in the upstream branch:
commit 06dffc104a57e97ac5a4a8d00747354750642526
Author: Matt Robinson <matt at puppetlabs.com>
Date:   Mon Jun 28 16:21:39 2010 -0700

    maint: A test specified that a file wasn't writeable, but was writeable
    when run as root, which caused the test to fail.  Changing the test so
    that a directory is in place of the writeable file so not even root can
    write to it.

diff --git a/spec/integration/type/file.rb b/spec/integration/type/file.rb
index 0724467..47a5487 100755
--- a/spec/integration/type/file.rb
+++ b/spec/integration/type/file.rb
@@ -58,7 +58,8 @@ describe Puppet::Type.type(:file) do
 
             File.open(file[:path], "w") { |f| f.puts "bar" }
 
-            File.chmod(0111, dir) # make it non-writeable
+            # Create a directory where the backup should be so that writing to it fails
+            Dir.mkdir(File.join(dir, "testfile.bak"))
 
             Puppet::Util::Log.stubs(:newmessage)
 

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list