amqp1: fix functional tests deps
This change increases the version of python-qpid-proton to works on fedora21. It also installs qpid-tools to ensure authentification works before starting the tests. Change-Id: Ic8eb3b80ef4af6ca8cecbb6fba71cb69c0af3101
This commit is contained in:
parent
62ce02cc8a
commit
b2f505ee57
@ -5,5 +5,5 @@
|
||||
# amqp1 driver tox tests this way:
|
||||
# tox -e amqp1
|
||||
pyngus>=1.0.0,<2.0.0 # Apache-2.0
|
||||
python-qpid-proton>=0.7,<0.8 # Apache-2.0
|
||||
python-qpid-proton>=0.7,<0.9 # Apache-2.0
|
||||
|
||||
|
@ -16,5 +16,14 @@
|
||||
|
||||
RPC_BACKEND=$1
|
||||
|
||||
case $RPC_BACKEND in
|
||||
amqp1|qpid)
|
||||
# Ensure authentification works before continuing, otherwise tests
|
||||
# will retries forever
|
||||
sudo yum install -y qpid-tools
|
||||
qpid-config --sasl-mechanism=PLAIN -a stackqpid/secretqpid@127.0.0.1
|
||||
;;
|
||||
esac
|
||||
|
||||
cd $BASE/new/oslo.messaging
|
||||
sudo -H -u stack tox -e py27-func-$RPC_BACKEND
|
||||
|
4
tox.ini
4
tox.ini
@ -43,8 +43,8 @@ commands = python setup.py testr --slowest --testr-args='oslo_messaging.tests.fu
|
||||
setenv = TRANSPORT_URL=amqp://stackqpid:secretqpid@127.0.0.1//
|
||||
deps = -r{toxinidir}/amqp1-requirements.txt
|
||||
{[testenv]deps}
|
||||
# NOTE(sileht): until ubuntu get proto packages, we run amqp_driver tests here
|
||||
# because this is the only target to run fedora 20 in gate
|
||||
# NOTE(sileht): This gate job run in fedora21 because proton libs are not
|
||||
# available on ubuntu yet,
|
||||
commands = python setup.py testr --slowest --testr-args='oslo_messaging.tests.(functional|test_amqp_driver)'
|
||||
|
||||
[testenv:py27-func-zeromq]
|
||||
|
Loading…
Reference in New Issue
Block a user