commit | 71440138442aca7580021002c226fe00f0792798 | [log] [tgz] |
---|---|---|
author | Alex Rudyy <orudyy@apache.org> | Thu Apr 21 15:33:21 2016 +0000 |
committer | Alex Rudyy <orudyy@apache.org> | Thu Apr 21 15:33:21 2016 +0000 |
tree | 74baf8f46e08a074381b827fc3b8b84a4e48a3c1 | |
parent | f8aff1c99e4683e3e9ad59d0f4f481ec9b8df77f [diff] |
QPID-7222: Make python test qpid_tests.broker_0_10.message.MessageTests.test_release_order to fetch explicitly required number of messages before sending accept/release in order to make sure that released messages are not resend back by the broker
This distribution contains a Python client implementation and AMQP conformance tests for Apache Qpid.
Apache Qpid is a high speed, language independent, platform independent enterprise messaging system. It currently provides two messaging brokers (one implemented in C++, one implemented in Java), and messaging client libraries for Java JMS, C++, C# .NET, Python, Ruby, and WCF. The messaging protocol for Apache Qpid is AMQP (Advanced Message Queuing Protocol). You can read more about Qpid here:
http://qpid.apache.org/
Documentation can be found here:
http://qpid.apache.org/documentation.html
Make sure the Qpid Python client libraries are on your PYTHONPATH. If you have extracted the archive to the directory INSTALLPATH, the following export will work:
$ export PYTHONPATH=${PYTHONPATH}:${INSTALLPATH}/qpid-0.8/python
Make sure a broker is running.
Run the ‘hello’ example from qpid-0.8/python/examples/api:
$ ./hello Hello world!
The examples/api directory contains several examples.
Read examples/README.txt for further details on these examples.
The “tests” directory contains a collection of unit tests for the python client. The “tests_0-10”, “tests_0-9”, and “tests_0-8” directories contain protocol level conformance tests for AMQP brokers of the specified version.
The qpid-python-test script may be used to run these tests. It will by default run the python unit tests and the 0-10 conformance tests:
Run a broker on the default port.
Run the tests:
$ ./qpid-python-test
If you wish to run the 0-8 or 0-9 conformence tests, they may be selected as follows:
Run a broker on the default port.
Run the tests:
$ ./qpid-python-test tests_0-8.* [or] $ ./qpid-python-test tests_0-9.*
See the qpid-python-test usage for for additional options:
./qpid-python-test -h
Other Qpid components depend on Qpid Python for testing. You can use setup.py to install Qpid Python to a standard location:
$ python setup.py install --user $ export PYTHONPATH=$HOME/.local/lib/python2.7/site-packages $ export PATH=$HOME/.local/bin:$PATH [or] $ python setup.py install # Uses established system paths