summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/cluster_tests.py
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-11-24 22:41:10 +0000
committerAlan Conway <aconway@apache.org>2009-11-24 22:41:10 +0000
commit40e40d3c5d3d3c6872d07f2e9071424cfc69ba91 (patch)
treeea601b8207e438812553b514d320a460348334f4 /qpid/cpp/src/tests/cluster_tests.py
parentd65bec1539940b8d7f871d1bdd34719a2fdb9e64 (diff)
downloadqpid-python-40e40d3c5d3d3c6872d07f2e9071424cfc69ba91.tar.gz
Verify stored cluster-id matches agreed cluster-id when joining a persistent cluster.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@883910 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/cluster_tests.py')
-rwxr-xr-xqpid/cpp/src/tests/cluster_tests.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/cluster_tests.py b/qpid/cpp/src/tests/cluster_tests.py
index f3b71d700c..1437c9e20a 100755
--- a/qpid/cpp/src/tests/cluster_tests.py
+++ b/qpid/cpp/src/tests/cluster_tests.py
@@ -158,3 +158,14 @@ class StoreTests(BrokerTest):
c = cluster.start("c", wait_for_start=True)
self.assertEqual(a.get_message("q").content, "clean")
+ def test_wrong_store_uuid(self):
+ # Start a cluster1 broker, then try to restart in cluster2
+ cluster1 = self.cluster(0, args=self.args())
+ a = cluster1.start("a", expect=EXPECT_EXIT_OK)
+ a.terminate()
+ cluster2 = self.cluster(1, args=self.args())
+ try:
+ a = cluster2.start("a", expect=EXPECT_EXIT_FAIL)
+ self.fail("Expected exception")
+ except: pass
+