Bandit password tests

These tests were broken, a previous patch failed to fix them
(referenced old docs). This patch actually fixes them and adds
nosec comments as needed. Note that 'hardcoded_password_default'
is disabled until some issues are resolved.

Change-Id: I0c6977b48fd824cfdb13e86086476a4acd945585
This commit is contained in:
Tim Kelsey 2016-04-01 12:03:16 +01:00
parent 8421ec8772
commit 360f658ab5
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ commands =
bash -c "find sahara -iname '*.sh' -print0 | xargs -0 bashate -v"
bash -c "find devstack -not -name README.rst -and -not -name \*.json -type f -print0 | xargs -0 bashate -v"
# Run security linter
bandit -c bandit.yaml -r sahara -n5 -p sahara_default
bandit -c bandit.yaml -r sahara -n5 -p sahara_default -x tests
[testenv:venv]
commands = {posargs}
@ -78,7 +78,7 @@ commands = oslo_debug_helper {posargs}
[testenv:bandit]
deps = -r{toxinidir}/test-requirements-bandit.txt
commands = bandit -c bandit.yaml -r sahara -n5 -p sahara_default
commands = bandit -c bandit.yaml -r sahara -n5 -p sahara_default -x tests
[flake8]
show-source = true