Add bandit job to Deckhand

Added bandit job to Deckhand's tox.ini.

Change-Id: Iac57ee58e1eda7872091c53401c3d46d1737da78
This commit is contained in:
Felipe Monteiro 2017-08-14 19:31:19 +01:00
parent 6c70cbdbfe
commit b5a7de448e
2 changed files with 6 additions and 1 deletions

View File

@ -17,3 +17,4 @@ oslotest>=1.10.0 # Apache-2.0
os-testr>=0.8.0 # Apache-2.0 os-testr>=0.8.0 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD testrepository>=0.0.18 # Apache-2.0/BSD
testtools>=1.4.0 # MIT testtools>=1.4.0 # MIT
bandit>=1.1.0 # Apache-2.0

View File

@ -6,7 +6,6 @@ usedevelop = True
whitelist_externals = bash whitelist_externals = bash
find find
rm rm
env
flake8 flake8
setenv = VIRTUAL_ENV={envdir} setenv = VIRTUAL_ENV={envdir}
OS_TEST_PATH=./deckhand/tests/unit OS_TEST_PATH=./deckhand/tests/unit
@ -45,6 +44,11 @@ commands =
python setup.py testr --coverage --testr-args='{posargs}' python setup.py testr --coverage --testr-args='{posargs}'
coverage report coverage report
[testenv:bandit]
whitelist_externals = bandit
commands =
bandit -r deckhand -x deckhand/tests -n 5
[testenv:genconfig] [testenv:genconfig]
commands = oslo-config-generator --config-file=etc/deckhand/config-generator.conf commands = oslo-config-generator --config-file=etc/deckhand/config-generator.conf