diff options
| author | Ted Ross <tross@apache.org> | 2012-06-13 20:32:36 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2012-06-13 20:32:36 +0000 |
| commit | 1c736176e51d951c87678751fec9cb4dacc06a21 (patch) | |
| tree | 5bb4ce1c4371268e31d949c3a3cfa065cb2417f2 /tests | |
| parent | ba08e2ab681ce466dde0050f388b24a56b3f8e61 (diff) | |
| download | qpid-python-1c736176e51d951c87678751fec9cb4dacc06a21.tar.gz | |
QPID-4065 - Remove the message's trace list during Queue::reRoute
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1350003 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/src/py/qpid_tests/broker_0_10/management.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/src/py/qpid_tests/broker_0_10/management.py b/tests/src/py/qpid_tests/broker_0_10/management.py index 2dd2291b2e..a1316ea854 100644 --- a/tests/src/py/qpid_tests/broker_0_10/management.py +++ b/tests/src/py/qpid_tests/broker_0_10/management.py @@ -302,9 +302,10 @@ class ManagementTest (TestBase010): twenty = range(1,21) props = session.delivery_properties(routing_key="routing_key") + mp = session.message_properties(application_headers={'x-qpid.trace' : 'A,B,C'}) for count in twenty: body = "Reroute Message %d" % count - msg = Message(props, body) + msg = Message(props, mp, body) session.message_transfer(destination="amq.direct", message=msg) pq = self.qmf.getObjects(_class="queue", name="reroute-queue")[0] @@ -317,6 +318,16 @@ class ManagementTest (TestBase010): self.assertEqual(pq.msgDepth,19) self.assertEqual(aq.msgDepth,1) + "Verify that the trace was cleared on the rerouted message" + url = "%s://%s:%d" % (self.broker.scheme or "amqp", self.broker.host, self.broker.port) + conn = qpid.messaging.Connection(url) + conn.open() + sess = conn.session() + rx = sess.receiver("alt-queue1;{mode:browse}") + rm = rx.fetch(1) + self.assertEqual(rm.properties['x-qpid.trace'], '') + conn.close() + "Reroute top 9 messages from reroute-queue to alt.direct2" result = pq.reroute(9, False, "alt.direct2", {}) self.assertEqual(result.status, 0) |
