[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 0.25.5-639-g8f94f35
Luke Kanies
luke at puppetlabs.com
Wed Jul 14 10:32:25 UTC 2010
The following commit has been merged in the upstream branch:
commit 006e6afd6e15c32ef0b49eefd0366fba694a0cf5
Author: Luke Kanies <luke at puppetlabs.com>
Date: Mon Apr 12 11:14:05 2010 -0700
Removing obsolete test
Signed-off-by: Luke Kanies <luke at puppetlabs.com>
diff --git a/test/ral/type/file.rb b/test/ral/type/file.rb
index 0d9107a..daa215a 100755
--- a/test/ral/type/file.rb
+++ b/test/ral/type/file.rb
@@ -656,45 +656,6 @@ class TestFile < Test::Unit::TestCase
assert_equal("%o" % 0755, "%o" % (File.stat(path).mode & 007777))
end
- def test_backupmodes
- File.umask(0022)
-
- file = tempfile()
- newfile = tempfile()
-
- File.open(file, "w", 0411) { |f| f.puts "yayness" }
-
- obj = Puppet::Type.type(:file).new(
- :path => file, :content => "rahness\n", :backup => ".puppet-bak"
- )
- catalog = mk_catalog(obj)
- catalog.apply
-
- backupfile = file + obj[:backup]
- @@tmpfiles << backupfile
- assert(FileTest.exists?(backupfile),
- "Backup file %s does not exist" % backupfile)
-
- assert_equal(0411, filemode(backupfile),
- "File mode is wrong for backupfile")
-
- name = "bucket"
- bpath = tempfile()
- Dir.mkdir(bpath)
- bucket = Puppet::Type.type(:filebucket).new(:title => name, :path => bpath)
- catalog.add_resource(bucket)
-
- obj[:backup] = name
- obj[:content] = "New content"
- catalog.finalize
- catalog.apply
-
- md5 = "18cc17fa3047fcc691fdf49c0a7f539a"
- dir, file, pathfile = Puppet::Network::Handler.filebucket.paths(bpath, md5)
-
- assert_equal(0440, filemode(file))
- end
-
def test_replacefilewithlink
path = tempfile()
link = tempfile()
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list