On 07/03/07, Martin Ritchie <[EMAIL PROTECTED]> wrote:
On 06/03/07, Alan Conway <[EMAIL PROTECTED]> wrote:
> On Tue, 2007-03-06 at 11:38 +0000, Martin Ritchie wrote:
> > On 05/03/07, Alan Conway <[EMAIL PROTECTED]> wrote:
> > > I'll be merging the 0-9 C++ branch (Jira QPID-400) soon, speak up if you
> > > know of any outstanding issues. The plan is to merge python first for
> > > the tests (branch python speaks both old & new protocols) then the C++
> > > codebase.
> > >
> > > I'm currently working on getting python verified against all brokers
> > > (trunk/branch, c++/java).
> >
> > Alan, I have some updates to the Java broker if you are working on the
> > C++ - python I shall look at that java - python. Ensuring my recent
> > updates haven't broken a python test.
> >
>
> I'm still seeing many python test failures against the java broker on
> trunk.
>
> Here's the failure output:
>
> .E.E.FFF.........F.......F....E...E.EEEEEEEEEE
> ======================================================================
> ERROR: test_ack (tests.basic.BasicTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/home/aconway/svn/qpid/python/tests/basic.py", line 178, in
> test_ack
>    msg3b = queue.get(timeout=1)
>  File "/home/aconway/svn/qpid/python/qpid/queue.py", line 38, in get
>    result = BaseQueue.get(self, block, timeout)
>  File "/usr/lib/python2.4/Queue.py", line 127, in get
>    raise Empty
> Empty
>
> ======================================================================
> ERROR: test_consume_exclusive (tests.basic.BasicTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/home/aconway/svn/qpid/python/tests/basic.py", line 72, in
> test_consume_exclusive
>    channel.channel_open()
>  File "<string>", line 3, in channel_open
>  File "/home/aconway/svn/qpid/python/qpid/peer.py", line 182, in invoke
>    raise Closed(self.reason)
> Closed
>
> ======================================================================
> ERROR: testTopic (tests.exchange.RecommendedTypesRuleTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/home/aconway/svn/qpid/python/tests/exchange.py", line 101, in
> testTopic
>    self.verifyTopicExchange("t")
>  File "/home/aconway/svn/qpid/python/tests/exchange.py", line 60, in
> verifyTopicExchange
>    self.assertPublishGet(q, ex, "a.b.x")
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 216, in
> assertPublishGet
>    msg = queue.get(timeout=1)
>  File "/home/aconway/svn/qpid/python/qpid/queue.py", line 38, in get
>    result = BaseQueue.get(self, block, timeout)
>  File "/usr/lib/python2.4/Queue.py", line 127, in get
>    raise Empty
> Empty
>
> ======================================================================
> ERROR: testAmqTopic (tests.exchange.RequiredInstancesRuleTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/home/aconway/svn/qpid/python/tests/exchange.py", line 123, in
> testAmqTopic
>    def testAmqTopic(self):  self.verifyTopicExchange("amq.topic")
>  File "/home/aconway/svn/qpid/python/tests/exchange.py", line 60, in
> verifyTopicExchange
>    self.assertPublishGet(q, ex, "a.b.x")
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 216, in
> assertPublishGet
>    msg = queue.get(timeout=1)
>  File "/home/aconway/svn/qpid/python/qpid/queue.py", line 38, in get
>    result = BaseQueue.get(self, block, timeout)
>  File "/usr/lib/python2.4/Queue.py", line 127, in get
>    raise Empty
> Empty
>
> ======================================================================
> ERROR: test_basic_delivery_immediate (tests.broker.BrokerTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/home/aconway/svn/qpid/python/tests/broker.py", line 58, in
> test_basic_delivery_immediate
>    self.queue_declare(channel, queue="test-queue")
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 178, in
> queue_declare
>    reply = channel.queue_declare(*args, **keys)
>  File "<string>", line 3, in queue_declare
>  File "/home/aconway/svn/qpid/python/qpid/peer.py", line 182, in invoke
>    raise Closed(self.reason)
> Closed: Method(name=close, id=40) (405, 'Cannot declare queue, as
> exclusive queue with same name declared on another connection [error
> code 405: Already exists]', 50, 10) content = None
>
> ======================================================================
> ERROR: test_basic_delivery_immediate (tests.broker.BrokerTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 170, in
> tearDown
>    ch.exchange_delete(exchange=ex)
>  File "<string>", line 3, in exchange_delete
>  File "/home/aconway/svn/qpid/python/qpid/peer.py", line 153, in invoke
>    raise Closed(self.reason)
> Closed: Method(name=close, id=40) (405, 'Cannot declare queue, as
> exclusive queue with same name declared on another connection [error
> code 405: Already exists]', 50, 10) content = None
>
> ======================================================================
> ERROR: test_basic_delivery_queued (tests.broker.BrokerTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/home/aconway/svn/qpid/python/tests/broker.py", line 78, in
> test_basic_delivery_queued
>    self.queue_declare(channel, queue="test-queue")
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 178, in
> queue_declare
>    reply = channel.queue_declare(*args, **keys)
>  File "<string>", line 3, in queue_declare
>  File "/home/aconway/svn/qpid/python/qpid/peer.py", line 182, in invoke
>    raise Closed(self.reason)
> Closed: Method(name=close, id=40) (405, 'Cannot declare queue, as
> exclusive queue with same name declared on another connection [error
> code 405: Already exists]', 50, 10) content = None
>
> ======================================================================
> ERROR: test_basic_delivery_queued (tests.broker.BrokerTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 170, in
> tearDown
>    ch.exchange_delete(exchange=ex)
>  File "<string>", line 3, in exchange_delete
>  File "/home/aconway/svn/qpid/python/qpid/peer.py", line 153, in invoke
>    raise Closed(self.reason)
> Closed: Method(name=close, id=40) (405, 'Cannot declare queue, as
> exclusive queue with same name declared on another connection [error
> code 405: Already exists]', 50, 10) content = None
>
> ======================================================================
> ERROR: test_closed_channel (tests.broker.BrokerTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/home/aconway/svn/qpid/python/tests/broker.py", line 103, in
> test_closed_channel
>    self.assertConnectionException(504, e.args[0])
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 234, in
> assertConnectionException
>    self.assertEqual("connection", message.method.klass.name)
> AttributeError: Closed instance has no attribute 'method'
>
> ======================================================================
> ERROR: test_invalid_channel (tests.broker.BrokerTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 162, in
> setUp
>    self.client = self.connect()
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 174, in
> connect
>    return testrunner.connect(*args, **keys)
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 139, in
> connect
>    client.start({"LOGIN": user, "PASSWORD": password})
>  File "/home/aconway/svn/qpid/python/qpid/client.py", line 79, in start
>    self.conn.connect()
>  File "/home/aconway/svn/qpid/python/qpid/connection.py", line 66, in
> connect
>    sock.connect((self.host, self.port))
>  File "<string>", line 1, in connect
> error: (111, 'Connection refused')
>
> ======================================================================
> ERROR: test_auto_rollback (tests.tx.TxTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 162, in
> setUp
>    self.client = self.connect()
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 174, in
> connect
>    return testrunner.connect(*args, **keys)
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 139, in
> connect
>    client.start({"LOGIN": user, "PASSWORD": password})
>  File "/home/aconway/svn/qpid/python/qpid/client.py", line 79, in start
>    self.conn.connect()
>  File "/home/aconway/svn/qpid/python/qpid/connection.py", line 66, in
> connect
>    sock.connect((self.host, self.port))
>  File "<string>", line 1, in connect
> error: (111, 'Connection refused')
>
> ======================================================================
> ERROR: test_commit (tests.tx.TxTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 162, in
> setUp
>    self.client = self.connect()
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 174, in
> connect
>    return testrunner.connect(*args, **keys)
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 139, in
> connect
>    client.start({"LOGIN": user, "PASSWORD": password})
>  File "/home/aconway/svn/qpid/python/qpid/client.py", line 79, in start
>    self.conn.connect()
>  File "/home/aconway/svn/qpid/python/qpid/connection.py", line 66, in
> connect
>    sock.connect((self.host, self.port))
>  File "<string>", line 1, in connect
> error: (111, 'Connection refused')
>
> ======================================================================
> ERROR: test_commit_overlapping_acks (tests.tx.TxTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 162, in
> setUp
>    self.client = self.connect()
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 174, in
> connect
>    return testrunner.connect(*args, **keys)
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 139, in
> connect
>    client.start({"LOGIN": user, "PASSWORD": password})
>  File "/home/aconway/svn/qpid/python/qpid/client.py", line 79, in start
>    self.conn.connect()
>  File "/home/aconway/svn/qpid/python/qpid/connection.py", line 66, in
> connect
>    sock.connect((self.host, self.port))
>  File "<string>", line 1, in connect
> error: (111, 'Connection refused')
>
> ======================================================================
> ERROR: test_rollback (tests.tx.TxTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 162, in
> setUp
>    self.client = self.connect()
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 174, in
> connect
>    return testrunner.connect(*args, **keys)
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 139, in
> connect
>    client.start({"LOGIN": user, "PASSWORD": password})
>  File "/home/aconway/svn/qpid/python/qpid/client.py", line 79, in start
>    self.conn.connect()
>  File "/home/aconway/svn/qpid/python/qpid/connection.py", line 66, in
> connect
>    sock.connect((self.host, self.port))
>  File "<string>", line 1, in connect
> error: (111, 'Connection refused')
>
> ======================================================================
> FAIL: test_consume_queue_errors (tests.basic.BasicTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/home/aconway/svn/qpid/python/tests/basic.py", line 101, in
> test_consume_queue_errors
>    self.assertConnectionException(530, e.args[0])
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 236, in
> assertConnectionException
>    self.assertEqual(expectedCode, message.reply_code)
> AssertionError: 530 != 507
>
> ======================================================================
> FAIL: test_consume_unique_consumers (tests.basic.BasicTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/home/aconway/svn/qpid/python/tests/basic.py", line 117, in
> test_consume_unique_consumers
>    self.assertConnectionException(530, e.args[0])
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 236, in
> assertConnectionException
>    self.assertEqual(expectedCode, message.reply_code)
> AssertionError: 530 != 507
>
> ======================================================================
> FAIL: test_get (tests.basic.BasicTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/home/aconway/svn/qpid/python/tests/basic.py", line 350, in
> test_get
>    self.assertEqual(reply.method.name, "get-ok")
> AssertionError: u'get-empty' != 'get-ok'
>
> ======================================================================
> FAIL: test_purge (tests.queue.QueueTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/home/aconway/svn/qpid/python/tests/queue.py", line 46, in
> test_purge
>    self.assertEqual(3, reply.message_count)
> AssertionError: 3 != 0L
>
> ======================================================================
> FAIL: testDifferentDeclaredType
> (tests.exchange.MiscellaneousErrorsTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/home/aconway/svn/qpid/python/tests/exchange.py", line 321, in
> testDifferentDeclaredType
>    self.assertConnectionException(530, e.args[0])
>  File "/home/aconway/svn/qpid/python/qpid/testlib.py", line 236, in
> assertConnectionException
>    self.assertEqual(expectedCode, message.reply_code)
> AssertionError: 530 != 507
>
> ----------------------------------------------------------------------
> Ran 44 tests in 536.599s
>
> FAILED (failures=5, errors=14)

Alan your java code needs an SVN update. These were the errors I was
seeing before I did my recent commit. I shall do an update and ensure
that the trunk passes all the python tests.

The two topic tests will still fail but they are listed in the
java_failing.txt file. I hope to have those to sorted soon.
--
Martin Ritchie

That took longer than expected. Did a update on trunk and a clean
build of the java then ran the python and all passed. This was the
output:

$ ./run-tests -v -I java_failing.txt
test_ack (tests.basic.BasicTests) ... ok
test_cancel (tests.basic.BasicTests) ... ok
test_consume_exclusive (tests.basic.BasicTests) ... ok
test_consume_no_local (tests.basic.BasicTests) ... ok
test_consume_queue_errors (tests.basic.BasicTests) ... ok
test_consume_unique_consumers (tests.basic.BasicTests) ... ok
test_get (tests.basic.BasicTests) ... ok
test_qos_prefetch_count (tests.basic.BasicTests) ... ok
test_qos_prefetch_size (tests.basic.BasicTests) ... ok
test_recover_requeue (tests.basic.BasicTests) ... ok
test_amqp_basic_13 (tests.broker.BrokerTests) ... ok
test_basic_delivery_immediate (tests.broker.BrokerTests) ... ok
test_basic_delivery_queued (tests.broker.BrokerTests) ... ok
test_closed_channel (tests.broker.BrokerTests) ... ok
test_invalid_channel (tests.broker.BrokerTests) ... ok
test_example (tests.example.ExampleTest) ... ok
test (tests.exchange.DeclareMethodPassiveFieldNotFoundRuleTests) ... ok
testDefaultExchange (tests.exchange.DefaultExchangeRuleTests) ... ok
testMatchAll (tests.exchange.HeadersExchangeTests) ... ok
testMatchAny (tests.exchange.HeadersExchangeTests) ... ok
testDifferentDeclaredType (tests.exchange.MiscellaneousErrorsTests) ... ok
testTypeNotKnown (tests.exchange.MiscellaneousErrorsTests) ... ok
testDirect (tests.exchange.RecommendedTypesRuleTests) ... ok
testFanout (tests.exchange.RecommendedTypesRuleTests) ... ok
testHeaders (tests.exchange.RecommendedTypesRuleTests) ... ok
testAmqDirect (tests.exchange.RequiredInstancesRuleTests) ... ok
testAmqFanOut (tests.exchange.RequiredInstancesRuleTests) ... ok
testAmqMatch (tests.exchange.RequiredInstancesRuleTests) ... ok
test_bind (tests.queue.QueueTests) ... ok
test_declare_exclusive (tests.queue.QueueTests) ... ok
test_declare_passive (tests.queue.QueueTests) ... ok
test_delete_ifempty (tests.queue.QueueTests) ... ok
test_delete_ifunused (tests.queue.QueueTests) ... ok
test_delete_simple (tests.queue.QueueTests) ... ok
test_purge (tests.queue.QueueTests) ... ok
testAssertEmptyFail (tests.testlib.TestBaseTest) ... ok
testAssertEmptyPass (tests.testlib.TestBaseTest) ... ok
testMessageProperties (tests.testlib.TestBaseTest) ... ok
test_auto_rollback (tests.tx.TxTests) ... ok
test_commit (tests.tx.TxTests) ... ok
test_commit_overlapping_acks (tests.tx.TxTests) ... ok
test_rollback (tests.tx.TxTests) ... ok

----------------------------------------------------------------------
Ran 42 tests in 56.311s

OK
=======================================
NOTE: the following tests were ignored:
tests.exchange.RecommendedTypesRuleTests.testTopic
tests.exchange.RequiredInstancesRuleTests.testAmqTopic
=======================================


--
Martin Ritchie

Reply via email to