From bb60cabda8d9cf4bdc7d138eadfd19ca6d8e7249 Mon Sep 17 00:00:00 2001 From: luke Date: Fri, 5 May 2006 19:43:23 +0000 Subject: Making trigger logs much clearer -- you now get info logs indicating how many dependencies changed, and debug logs indicating what those dependencies are git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1178 980ebf18-57e1-0310-9a29-db15c13687c0 --- test/other/events.rb | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'test') diff --git a/test/other/events.rb b/test/other/events.rb index a8779743b..4bfb73090 100755 --- a/test/other/events.rb +++ b/test/other/events.rb @@ -100,4 +100,31 @@ class TestEvents < Test::Unit::TestCase assert(FileTest.exists?(fname), "#{fname} does not exist") #assert_equal(events.length, trans.triggered?(objects[:b], :refresh)) end + + def test_multiplerefreshes + files = [] + + 4.times { |i| + files << Puppet.type(:file).create( + :name => tempfile(), + :ensure => "file" + ) + } + + fname = tempfile() + exec = Puppet.type(:exec).create( + :name => "touch %s" % fname, + :path => "/usr/bin:/bin", + :refreshonly => true + ) + + exec[:subscribe] = files.collect { |f| + ["file", f.name] + } + + comp = newcomp(exec, *files) + + assert_apply(comp) + assert(FileTest.exists?(fname), "Exec file did not get created") + end end -- cgit