From bffae05ed566e1a210f52782abdbdfdecec7ea09 Mon Sep 17 00:00:00 2001 From: Jonathan Robie Date: Fri, 8 Oct 2010 17:11:06 +0000 Subject: Registers the amq.failover exchange in the management exchange. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1005908 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/cluster_tests.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'cpp/src/tests') diff --git a/cpp/src/tests/cluster_tests.py b/cpp/src/tests/cluster_tests.py index b4fa510528..7272675971 100755 --- a/cpp/src/tests/cluster_tests.py +++ b/cpp/src/tests/cluster_tests.py @@ -18,7 +18,7 @@ # under the License. # -import os, signal, sys, time, imp, re +import os, signal, sys, time, imp, re, subprocess from qpid import datatypes, messaging from qpid.brokertest import * from qpid.harness import Skipped @@ -214,6 +214,15 @@ acl allow all all for b in cluster: b.ready() # Make sure all brokers still running. + def test_amqfailover_visible(self): + """Verify that the amq.failover exchange can be seen by + QMF-based tools - regression test for BZ615300.""" + broker1 = self.cluster(1)[0] + broker2 = self.cluster(1)[0] + qs = subprocess.Popen(["qpid-stat", "-e", broker1.host_port()], stdout=subprocess.PIPE) + out = qs.communicate()[0] + assert out.find("amq.failover") > 0 + class LongTests(BrokerTest): """Tests that can run for a long time if -DDURATION= is set""" def duration(self): @@ -525,4 +534,3 @@ class StoreTests(BrokerTest): self.assertEqual(c.get_message("q").content, "x") b = cluster.start("b") self.assertEqual(c.get_message("q").content, "y") - -- cgit v1.2.1