Enable bandit for utitilies
Story: 2008929 Task: 42530 Change-Id: Id63488414ae16b384549fcf8cbd9805b5b1a81ad Signed-off-by: Chen, Haochuan Z <haochuan.z.chen@intel.com>
This commit is contained in:
parent
931887828b
commit
1d63dc782f
14
.zuul.yaml
14
.zuul.yaml
|
@ -4,10 +4,12 @@
|
|||
jobs:
|
||||
- openstack-tox-linters
|
||||
- stx-tox-pylint
|
||||
- utilities-tox-bandit
|
||||
gate:
|
||||
jobs:
|
||||
- openstack-tox-linters
|
||||
- stx-tox-pylint
|
||||
- utilities-tox-bandit
|
||||
post:
|
||||
jobs:
|
||||
- stx-utilities-upload-git-mirror
|
||||
|
@ -35,6 +37,18 @@
|
|||
secret: stx-utilities-github-secret
|
||||
pass-to-parent: true
|
||||
|
||||
- job:
|
||||
name: utilities-tox-bandit
|
||||
parent: tox
|
||||
description: |
|
||||
Run bandit test for utilities
|
||||
nodeset: ubuntu-bionic
|
||||
files:
|
||||
- ./*
|
||||
vars:
|
||||
tox_envlist: bandit
|
||||
tox_extra_args: -c ./ceph/ceph-manager/ceph-manager/tox.ini -c ./ceph/python-cephclient/python-cephclient/tox.ini
|
||||
|
||||
- secret:
|
||||
name: stx-utilities-github-secret
|
||||
data:
|
||||
|
|
|
@ -22,3 +22,11 @@ commands =
|
|||
|
||||
[flake8]
|
||||
exclude = .venv,.git,.tox,dist,doc,etc,*glance/locale*,*lib/python*,*egg,build
|
||||
|
||||
[bandit]
|
||||
exclude = tests
|
||||
|
||||
[testenv:bandit]
|
||||
basepython = python3
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
commands = bandit --ini tox.ini -n 5 -r ceph_manager
|
||||
|
|
|
@ -17,3 +17,11 @@ commands =
|
|||
|
||||
[flake8]
|
||||
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
||||
|
||||
[bandit]
|
||||
exclude = tests
|
||||
|
||||
[testenv:bandit]
|
||||
basepython = python3
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
commands = bandit --ini tox.ini -n 5 -r cephclient
|
||||
|
|
Loading…
Reference in New Issue