diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-05-05 19:43:23 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-05-05 19:43:23 +0000 |
| commit | bb60cabda8d9cf4bdc7d138eadfd19ca6d8e7249 (patch) | |
| tree | 28d884d601b54e4c14fba8b038e2c099670f17db /test/other | |
| parent | 88c3f7c4795da36c161ee340b535725b826aded2 (diff) | |
| download | puppet-bb60cabda8d9cf4bdc7d138eadfd19ca6d8e7249.tar.gz puppet-bb60cabda8d9cf4bdc7d138eadfd19ca6d8e7249.tar.xz puppet-bb60cabda8d9cf4bdc7d138eadfd19ca6d8e7249.zip | |
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
Diffstat (limited to 'test/other')
| -rwxr-xr-x | test/other/events.rb | 27 |
1 files changed, 27 insertions, 0 deletions
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 |
