diff options
author | Luke Kanies <luke@madstop.com> | 2005-07-19 00:29:25 +0000 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2005-07-19 00:29:25 +0000 |
commit | 9ba72f574aba66020913c7ac837634d5ca0fb13e (patch) | |
tree | 80e2cf54979789504f50ce390b553b9fad44d3dc | |
parent | 311218be95ea0c217dd90003e541cc299ea841b8 (diff) | |
download | puppet-9ba72f574aba66020913c7ac837634d5ca0fb13e.tar.gz puppet-9ba72f574aba66020913c7ac837634d5ca0fb13e.tar.xz puppet-9ba72f574aba66020913c7ac837634d5ca0fb13e.zip |
removing, since pfile now has link functionality
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@420 980ebf18-57e1-0310-9a29-db15c13687c0
-rw-r--r-- | test/types/tc_symlink.rb | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/test/types/tc_symlink.rb b/test/types/tc_symlink.rb deleted file mode 100644 index f322c1167..000000000 --- a/test/types/tc_symlink.rb +++ /dev/null @@ -1,67 +0,0 @@ -if __FILE__ == $0 - $:.unshift '..' - $:.unshift '../../lib' - $puppetbase = "../../../../language/trunk" -end - -require 'puppet' -require 'test/unit' - -# $Id$ - -class TestSymlink < Test::Unit::TestCase - # hmmm - # this is complicated, because we store references to the created - # objects in a central store - def setup - @symlink = nil - @path = File.join($puppetbase,"examples/root/etc/symlink") - - Kernel.system("rm -f %s" % @path) - Puppet[:loglevel] = :debug if __FILE__ == $0 - assert_nothing_raised() { - unless Puppet::Type::Symlink.has_key?(@path) - Puppet::Type::Symlink.new( - :path => @path - ) - end - @symlink = Puppet::Type::Symlink[@path] - } - end - - def test_target - assert_nothing_raised() { - @symlink[:target] = "configfile" - } - assert_nothing_raised() { - @symlink.retrieve - } - # we might already be in sync - assert(!@symlink.insync?()) - assert_nothing_raised() { - @symlink.sync - } - assert_nothing_raised() { - @symlink.retrieve - } - assert(@symlink.insync?()) - assert_nothing_raised() { - @symlink[:target] = nil - } - assert_nothing_raised() { - @symlink.retrieve - } - assert(!@symlink.insync?()) - assert_nothing_raised() { - @symlink.sync - } - assert_nothing_raised() { - @symlink.retrieve - } - assert(@symlink.insync?()) - end - - def teardown - Kernel.system("rm -f %s" % @path) - end -end |