From 46d69068fa7b2f3448294c5d3da21c69cef73d2f Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Thu, 20 Sep 2007 12:57:57 -0500 Subject: An intermediate commit so I can start working on a different branch. The file recursion code actually works for the first time in a painful while, but there are still some quirks and design issues to resolve, particularly around creating implicit resources that then fail (i.e., the behaviour of the create_implicit_resource method in Configuration). --- test/ral/types/file.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test') diff --git a/test/ral/types/file.rb b/test/ral/types/file.rb index 47fb87afd..b58814a7f 100755 --- a/test/ral/types/file.rb +++ b/test/ral/types/file.rb @@ -1283,8 +1283,6 @@ class TestFile < Test::Unit::TestCase :content => "rahtest", :backup => false ) - - Puppet[:evaltrace] = true destobj = Puppet::Type.newfile(:title => "destdir", :path => destdir, :source => sourcedir, @@ -1299,6 +1297,7 @@ class TestFile < Test::Unit::TestCase assert(FileTest.exists?(purgee), "File got prematurely purged") assert_nothing_raised { destobj[:purge] = true } + Puppet.err :yay config.apply assert(FileTest.exists?(localfile), "Local file got purged") @@ -1755,7 +1754,6 @@ class TestFile < Test::Unit::TestCase assert_nothing_raised("Failure when recursing") do children = obj.eval_generate end - config.add_resource(*children) assert(obj.class[subdir], "did not create subdir object") children.each do |c| assert_nothing_raised("Failure when recursing on %s" % c) do -- cgit