Bandit test exclusions syntax change

Newer versions of bandit broke their handling of test exclusion
directories. It is now necessary to glob the contents of the directory
rather than just list the base path.

Change-Id: I02fbc02ce8d623b75a7d568ea48bb5e5e6c66b58
This commit is contained in:
Adam Harwell 2019-05-10 13:30:32 -07:00
parent 28f4f9e44a
commit 1a87298ac7
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ commands = flake8
doc/source octavia CONSTITUTION.rst HACKING.rst README.rst \
TESTING.rst
# Run security linter
bandit -r octavia -ll -ii -x octavia/tests
bandit -r octavia -ll -ii -x 'octavia/tests/*'
# Make sure specs follow our template
find . -type f -name "*.pyc" -delete
python -m unittest specs-tests.test_titles