diff options
| author | Alan Conway <aconway@apache.org> | 2009-11-24 22:41:10 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2009-11-24 22:41:10 +0000 |
| commit | 8477c62f2a4f7d989f0e1ea1ac3f2a2505d9a9dd (patch) | |
| tree | db2ad51f6cdf82d42a0c4025aa01caa5cf0802b7 /cpp/src/tests/cluster_tests.py | |
| parent | 51d4bf1a1a07e53164c6e771f6ecf10e3ffca4ec (diff) | |
| download | qpid-python-8477c62f2a4f7d989f0e1ea1ac3f2a2505d9a9dd.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/qpid@883910 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/cluster_tests.py')
| -rwxr-xr-x | cpp/src/tests/cluster_tests.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cpp/src/tests/cluster_tests.py b/cpp/src/tests/cluster_tests.py index f3b71d700c..1437c9e20a 100755 --- a/cpp/src/tests/cluster_tests.py +++ b/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 + |
