summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/cluster_tests.py
diff options
context:
space:
mode:
authorJonathan Robie <jonathan@apache.org>2010-10-08 17:11:06 +0000
committerJonathan Robie <jonathan@apache.org>2010-10-08 17:11:06 +0000
commit2f02708cbfc29669ffa64ce44f8bb9ebff01906b (patch)
treedd3d019f4142d8e2c54b01d4015f2f8f5d9cdb9c /qpid/cpp/src/tests/cluster_tests.py
parent53eff695b3bdac45260295b519a4274c9ad582a3 (diff)
downloadqpid-python-2f02708cbfc29669ffa64ce44f8bb9ebff01906b.tar.gz
Registers the amq.failover exchange in the management exchange.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1005908 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/cluster_tests.py')
-rwxr-xr-xqpid/cpp/src/tests/cluster_tests.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/cluster_tests.py b/qpid/cpp/src/tests/cluster_tests.py
index b4fa510528..7272675971 100755
--- a/qpid/cpp/src/tests/cluster_tests.py
+++ b/qpid/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=<minutes> 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")
-