From a8d3da228c12f5a79ed0dfba879dd3820508b455 Mon Sep 17 00:00:00 2001 From: Mehdi Abaakouk Date: Wed, 22 Oct 2014 23:46:48 +0200 Subject: [PATCH] Add qpid and amqp 1.0 tox targets This change adds two targets for qpid and amqp to be able to run the functional tests suite on them in gate This also run only functional tests for the functional tox testenv Change-Id: Ibf1db3fe55f82dd6dc02f2e57d73608fcad80d0e --- tox.ini | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/tox.ini b/tox.ini index 2a652f854..dd0f1da45 100644 --- a/tox.ini +++ b/tox.ini @@ -31,13 +31,21 @@ deps = -r{toxinidir}/requirements-py3.txt deps = -r{toxinidir}/requirements-py3.txt -r{toxinidir}/test-requirements-py3.txt -[testenv:amqp1] -# test AMQP 1.0 driver, requires QPID Proton developer packages +[testenv:py27-func-qpid] +setenv = TRANSPORT_URL=qpid://guest:password@localhost// +commands = python setup.py testr --slowest --testr-args='tests.functional' + +[testenv:py27-func-rabbit] +setenv = TRANSPORT_URL=rabbit://guest:password@localhost// +commands = python setup.py testr --slowest --testr-args='tests.functional' + +[testenv:py27-func-amqp1] +setenv = TRANSPORT_URL=amqp://guest:password@localhost// deps = -r{toxinidir}/amqp1-requirements.txt {[testenv]deps} - -[testenv:py27-rabbit] -setenv = TRANSPORT_URL=rabbit://guest:guest@localhost +# 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 +commands = python setup.py testr --slowest --testr-args='tests.(functional|test_amqp_driver)' [flake8] show-source = True