summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Kanies <luke@puppetlabs.com>2010-04-12 11:14:05 -0700
committerLuke Kanies <luke@puppetlabs.com>2010-04-12 11:14:05 -0700
commit006e6afd6e15c32ef0b49eefd0366fba694a0cf5 (patch)
tree025377f7eb2493af6fd68adff563d228a6ac7c7c
parent1a6e08fc9c4e5c39f76d14c762356865c10e1dc7 (diff)
downloadpuppet-006e6afd6e15c32ef0b49eefd0366fba694a0cf5.tar.gz
puppet-006e6afd6e15c32ef0b49eefd0366fba694a0cf5.tar.xz
puppet-006e6afd6e15c32ef0b49eefd0366fba694a0cf5.zip
Removing obsolete test
Signed-off-by: Luke Kanies <luke@puppetlabs.com>
-rwxr-xr-xtest/ral/type/file.rb39
1 files changed, 0 insertions, 39 deletions
diff --git a/test/ral/type/file.rb b/test/ral/type/file.rb
index 0d9107a3f..daa215adf 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()