You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kp...@apache.org on 2016/10/17 21:35:42 UTC
qpid-interop-test git commit: QPIDIT-42: Omitted fix for Python
receiver shim for handling "queue://" and "topic://" prefix added to address
by some brokers
Repository: qpid-interop-test
Updated Branches:
refs/heads/master 138dc7d1e -> f27896de1
QPIDIT-42: Omitted fix for Python receiver shim for handling "queue://" and "topic://" prefix added to address by some brokers
Project: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/commit/f27896de
Tree: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/tree/f27896de
Diff: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/diff/f27896de
Branch: refs/heads/master
Commit: f27896de1b5f015a1f3366c12ecbf9e1b9fe9ad3
Parents: 138dc7d
Author: Kim van der Riet <kp...@apache.org>
Authored: Mon Oct 17 17:35:13 2016 -0400
Committer: Kim van der Riet <kp...@apache.org>
Committed: Mon Oct 17 17:35:13 2016 -0400
----------------------------------------------------------------------
shims/qpid-proton-python/src/jms_hdrs_props_test/Receiver.py | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-interop-test/blob/f27896de/shims/qpid-proton-python/src/jms_hdrs_props_test/Receiver.py
----------------------------------------------------------------------
diff --git a/shims/qpid-proton-python/src/jms_hdrs_props_test/Receiver.py b/shims/qpid-proton-python/src/jms_hdrs_props_test/Receiver.py
index 582d339..b581906 100755
--- a/shims/qpid-proton-python/src/jms_hdrs_props_test/Receiver.py
+++ b/shims/qpid-proton-python/src/jms_hdrs_props_test/Receiver.py
@@ -315,6 +315,8 @@ class JmsHdrsPropsTestReceiver(MessagingHandler):
# See: https://docs.oracle.com/cd/E19798-01/821-1841/bnces/index.html
# 1. Destination
destination = message.address
+ if len(destination) > 8 and (destination[:8] == 'queue://' or destination[:8] == 'topic://'):
+ destination = destination[8:]
if destination != self.queue_name:
raise InteropTestError('JMS_DESTINATION header invalid: found "' + destination +
'"; expected "' + self.queue_name + '"')
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org