diff options
author | Zuul <zuul@review.openstack.org> | 2018-07-04 18:04:50 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2018-07-04 18:04:50 +0000 |
commit | 9e61ad5405b8a8d123ebf990b93ed8fb1fa110dc (patch) | |
tree | 8bc89a734f643944b17c35ba369ae6c31d233e4c /tox.ini | |
parent | 2ca8a15905ea393b2a5264a1378f6f4bbc808a32 (diff) | |
parent | ae9e67388706e57561531652145ba187f8870b94 (diff) | |
download | oslo-messaging-9e61ad5405b8a8d123ebf990b93ed8fb1fa110dc.tar.gz |
Merge "Fix the bandit security linter test"
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -1,6 +1,6 @@ [tox] minversion = 2.0 -envlist = py35,py27,pep8,bandit +envlist = py35,py27,pep8 [testenv] setenv = @@ -17,8 +17,10 @@ commands = stestr run --slowest {posargs} [testenv:pep8] basepython = python3 -commands = flake8 -deps = hacking<0.11,>=0.10.0 +commands = + flake8 + # run security linter + bandit -r oslo_messaging -x tests,_drivers/zmq_driver,_drivers/impl_zmq.py -n5 [testenv:cover] basepython = python3 @@ -104,13 +106,13 @@ commands = {toxinidir}/setup-test-env-zmq-proxy.sh stestr run --slowest {posargs basepython = python2.7 commands = {toxinidir}/setup-test-env-zmq-pub-sub.sh stestr run --slowest {posargs:oslo_messaging.tests.functional} + [testenv:bandit] +# NOTE(kgiusti): This is required for the integration test job of the bandit +# project. Please do not remove. basepython = python3 -deps = - -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} - -r{toxinidir}/test-requirements.txt - -r{toxinidir}/requirements.txt -commands = bandit -r oslo_messaging -x tests -n5 +# skip ZeroMQ - it is deprecated +commands = bandit -r oslo_messaging -x tests,_drivers/zmq_driver,_drivers/impl_zmq.py -n5 [flake8] show-source = True |