1
test_name "cycle detection and reporting"
3
step "check we report a simple cycle"
5
notify { "a1": require => Notify["a2"] }
6
notify { "a2": require => Notify["a1"] }
9
apply_manifest_on(agents, manifest) do
10
assert_match(/Found 1 dependency cycle/, stdout,
11
"found and reported the cycle correctly")
14
step "report multiple cycles in the same graph"
16
notify { "a1": require => Notify["a2"] }
17
notify { "a2": require => Notify["a1"] }
19
notify { "b1": require => Notify["b2"] }
20
notify { "b2": require => Notify["b1"] }
23
apply_manifest_on(agents, manifest) do
24
assert_match(/Found 2 dependency cycles/, stdout,
25
"found and reported the cycle correctly")