From b5a7de448ebb111727eeeded33a1d81f7f8c1ae6 Mon Sep 17 00:00:00 2001 From: Felipe Monteiro Date: Mon, 14 Aug 2017 19:31:19 +0100 Subject: [PATCH] Add bandit job to Deckhand Added bandit job to Deckhand's tox.ini. Change-Id: Iac57ee58e1eda7872091c53401c3d46d1737da78 --- test-requirements.txt | 1 + tox.ini | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/test-requirements.txt b/test-requirements.txt index e6663379..fc557a75 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -17,3 +17,4 @@ oslotest>=1.10.0 # Apache-2.0 os-testr>=0.8.0 # Apache-2.0 testrepository>=0.0.18 # Apache-2.0/BSD testtools>=1.4.0 # MIT +bandit>=1.1.0 # Apache-2.0 diff --git a/tox.ini b/tox.ini index 9f409501..e0af33f8 100644 --- a/tox.ini +++ b/tox.ini @@ -6,7 +6,6 @@ usedevelop = True whitelist_externals = bash find rm - env flake8 setenv = VIRTUAL_ENV={envdir} OS_TEST_PATH=./deckhand/tests/unit @@ -45,6 +44,11 @@ commands = python setup.py testr --coverage --testr-args='{posargs}' coverage report +[testenv:bandit] +whitelist_externals = bandit +commands = + bandit -r deckhand -x deckhand/tests -n 5 + [testenv:genconfig] commands = oslo-config-generator --config-file=etc/deckhand/config-generator.conf