Merge "adds bandit testing and Zuul CI job."
This commit is contained in:
commit
56ba694486
@ -129,7 +129,7 @@ class Manager(utils.HookableMixin):
|
|||||||
# pair
|
# pair
|
||||||
username = cliutils.env('OS_USERNAME', 'MANILA_USERNAME')
|
username = cliutils.env('OS_USERNAME', 'MANILA_USERNAME')
|
||||||
url = cliutils.env('OS_URL', 'MANILA_URL')
|
url = cliutils.env('OS_URL', 'MANILA_URL')
|
||||||
uniqifier = hashlib.sha1(username.encode('utf-8') +
|
uniqifier = hashlib.sha256(username.encode('utf-8') +
|
||||||
url.encode('utf-8')).hexdigest()
|
url.encode('utf-8')).hexdigest()
|
||||||
|
|
||||||
cache_dir = os.path.expanduser(os.path.join(base_dir, uniqifier))
|
cache_dir = os.path.expanduser(os.path.join(base_dir, uniqifier))
|
||||||
|
4
tox.ini
4
tox.ini
@ -90,6 +90,10 @@ commands =
|
|||||||
coverage xml -o cover/coverage.xml
|
coverage xml -o cover/coverage.xml
|
||||||
coverage report
|
coverage report
|
||||||
|
|
||||||
|
[testenv:bandit]
|
||||||
|
deps = bandit
|
||||||
|
commands = bandit -r manilaclient -x manilaclient/tests/* -n5 -ll
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
# F821: undefined name
|
# F821: undefined name
|
||||||
# W503 line break before binary operator
|
# W503 line break before binary operator
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
check:
|
check:
|
||||||
jobs:
|
jobs:
|
||||||
- python-manilaclient-functional
|
- python-manilaclient-functional
|
||||||
|
- python-manilaclient-tox-bandit
|
||||||
- manila-rally-ss:
|
- manila-rally-ss:
|
||||||
voting: false
|
voting: false
|
||||||
- python-manilaclient-functional-fips:
|
- python-manilaclient-functional-fips:
|
||||||
|
@ -92,3 +92,10 @@
|
|||||||
vars:
|
vars:
|
||||||
configure_swap_size: 4096
|
configure_swap_size: 4096
|
||||||
nslookup_target: 'opendev.org'
|
nslookup_target: 'opendev.org'
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: python-manilaclient-tox-bandit
|
||||||
|
parent: openstack-tox
|
||||||
|
timeout: 2400
|
||||||
|
vars:
|
||||||
|
tox_envlist: bandit
|
||||||
|
Loading…
Reference in New Issue
Block a user