summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-11-07 17:48:50 -0600
committerLuke Kanies <luke@madstop.com>2007-11-07 17:48:50 -0600
commit065a1d0281ba326674e37a00d8ced1e3a2dd57e4 (patch)
tree64645147721a20d49d94d354037db8edf7134f4d /test
parent3f21e93599653e3a6c82ab0a131ce250503a771e (diff)
Switching the graph base class from GRATR::Digraph
to Puppet::SimpleGraph, which should dramatically enhance performance. It should be largely functionally equivalent, with the only difference being that edges are no longer deduplicated.
Diffstat (limited to 'test')
-rwxr-xr-xtest/other/transactions.rb31
1 files changed, 0 insertions, 31 deletions
diff --git a/test/other/transactions.rb b/test/other/transactions.rb
index fb5cf4018..8156ba478 100755
--- a/test/other/transactions.rb
+++ b/test/other/transactions.rb
@@ -1006,37 +1006,6 @@ class TestTransactions < Test::Unit::TestCase
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 = mk_configuration(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
-
# #542 - make sure resources in noop mode still notify their resources,
# so that users know if a service will get restarted.
def test_noop_with_notify