diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-02-28 06:46:43 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-02-28 06:46:43 +0000 |
commit | cc260268a88f69a6bb28535b17ced7228aa71314 (patch) | |
tree | b98a11a6abfc9fe2786a34a94eceb166a940db6b /test/other | |
parent | d229d49c5614c5ca9e15ae5716968a184f6f1bc7 (diff) | |
download | puppet-cc260268a88f69a6bb28535b17ced7228aa71314.tar.gz puppet-cc260268a88f69a6bb28535b17ced7228aa71314.tar.xz puppet-cc260268a88f69a6bb28535b17ced7228aa71314.zip |
Fixing #467. It is a hackish solution, because I just reordered the definition of the params, but it works for now, anyway.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2242 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/other')
-rwxr-xr-x | test/other/transactions.rb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/other/transactions.rb b/test/other/transactions.rb index 3129116e7..1213c75b9 100755 --- a/test/other/transactions.rb +++ b/test/other/transactions.rb @@ -1078,6 +1078,37 @@ class TestTransactions < Test::Unit::TestCase assert(! graph.edge?(after, before), "created automatic relationship %s" % str) end end + + def test_labeled_deps_beat_unlabeled + one = Puppet::Type.type(:exec).create :command => "/bin/echo one" + two = Puppet::Type.type(:exec).create :command => "/bin/echo two" + + one[:require] = two + one[:subscribe] = two + + comp = newcomp(one, two) + trans = Puppet::Transaction.new(comp) + graph = trans.relationship_graph + + label = graph.edge_label(two, one) + assert(label, "require beat subscribe") + assert_equal(:refresh, label[:callback], + "did not get correct callback from subscribe") + + one.delete(:require) + one.delete(:subscribe) + + two[:before] = one + two[:notify] = one + + trans = Puppet::Transaction.new(comp) + graph = trans.relationship_graph + + label = graph.edge_label(two, one) + assert(label, "before beat notify") + assert_equal(:refresh, label[:callback], + "did not get correct callback from notify") + end end # $Id$ |