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:
parent
6a1960ed89
commit
addaf4358e
4
tox.ini
4
tox.ini
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue