Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.30, 0.31
-
None
Description
Running the Python 0-10 MessageEchoTests test suite against the Java Broker (trunk with "secureOnlyMechanisms" : [ ] applied to the auth provider), I see the following tests fail. The python assertion suggests the message body is not as expected.
Broker receiving MessageTransfer:
2014-09-06 21:26:02,982 DEBUG [IoReceiver - /0:0:0:0:0:0:0:1:56574] (transport.Connection) - RECV: [conn:49b9b979] ch=0 [S] MessageTransfer(destination=) DeliveryProperties(deliveryMode=NON_PERSISTENT, routingKey=test-message-echo-queue) MessageProperties(applicationHeaders={a=A, c=[x, 2], b=1, d=D})
Broker sending MessageTransfer:
2014-09-06 21:26:02,985 DEBUG [pool-4-thread-7] (transport.Connection) - SEND: [conn:49b9b979] ch=0 id=4 [B] MessageTransfer(destination=0, acceptMode=EXPLICIT, acquireMode=PRE_ACQUIRED) DeliveryProperties(deliveryMode=NON_PERSISTENT, routingKey=test-message-echo-queue) MessageProperties(applicationHeaders={a=A, c=[x, 2], b=1, d=D}) body=""
The test does not fail against 0.28.
qpid.tests.messaging.message.MessageEchoTests.testApplicationProperties ............................................................................... fail Error during test: Traceback (most recent call last): File "./qpid-python-test", line 340, in run phase() File "/Users/keith/src/qpid/qpid/python/qpid/tests/messaging/message.py", line 123, in testApplicationProperties self.check(msg) File "/Users/keith/src/qpid/qpid/python/qpid/tests/messaging/message.py", line 71, in check self.assertEcho(msg, echo) File "/Users/keith/src/qpid/qpid/python/qpid/tests/messaging/__init__.py", line 127, in assertEcho assert not delta, "expected %s, got %s, delta %s" % (msg, echo, delta) AssertionError: expected Message(properties={'a': u'A', 'c': ['x', 2], 'b': 1, 'd': 'D'}), got Message(properties={u'a': u'A', u'c': [u'x', 2], u'b': 1, 'x-amqp-0-10.routing-key': u'test-message-echo-queue', u'd': u'D'}, content=''), delta {'content': (None, '')} Totals: 111 tests, 0 passed, 0 skipped, 110 ignored, 1 failed