Commit Graph

7 Commits

Author SHA1 Message Date
lhinds 2d2170273b Project Migration to PyCQA
This change rehomes the project to PyCQA[1] as reported to the
openstack-dev mailing list [1]

[0] https://github.com/PyCQA/bandit
[1] http://lists.openstack.org/pipermail/openstack-dev/2018-April/129386.html

Change-Id: I6aad329a60799ea24a3d9bc49e35c3c35ed9dc3b
2018-05-04 06:59:50 +02:00
Andreas Jaeger 3977c673e0 Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.

This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.

Change-Id: I85d256e9e66bbf940f5b645c4a887b1f2a3707de
2017-12-02 17:06:26 +00:00
Tony Breeds 9eac3911a0 Add Constraints support
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.

This change adds constraints support by also adding a helper script to
edit the constraints to remove bandit.

Change-Id: Id9826953ea4f63702af427c0170c235afb91abaf
2016-12-20 15:32:16 +11:00
zhangyanxian 6c5ab95212 Remove white space between print and ()
Change-Id: Ic897cae44fe152e91abbd0bc82306ca8505c56e3
2016-08-03 02:38:58 +00:00
Jamie Finnigan 58c2a43909 Fix OpenStack coverage tool
Can no longer rely on Zuul's layout.yml to just have str's in its
set of test names, so we coerce to str.  Somewhat hacky workaround
but works for now.

Change-Id: Ib6676f0f106345e6919e81b1ca5327c8f2e5e8dd
2016-03-21 10:10:48 -07:00
Travis McPeak 215fb64143 Adding test tool for check OpenStack projects' Bandit job
This commit adds to the openstack coverage tool.  Specifically we
add a '-t' option.  If provided, this option will git clone any
project which uses Bandit in a job, run the tox Bandit job,
capture the output of any failed run, and display a summary table
at the end.

This tool is to support pre-release Bandit checking to make sure
that our changes haven't introduced any new issues in projects
which use it.

Change-Id: I321bcb15b59e3ee00ed2f2c6c2c890b77f30370e
2015-09-01 17:16:38 -07:00
Jamie Finnigan 297a0bb4c2 Add tool for reporting Bandit OpenStack coverage
This script is intended for inclusion in the Bandit repository and usage
by the Bandit and other OpenStack teams.  It is not intended for inclusion
in Bandit packages / distribution.

It executes against Jenkins and Zuul configuration files in the
openstack-infra/project-config repository, parses out Bandit jobs
and tests, and prints a summary of results.

It includes definition of an openstack_coverage testenv in tox.ini with
basic PyYAML and request dependencies to allow easy venv creation and
script execution.

Co-Authored-By: Ian Cordasco <graffatcolmingov@gmail.com>
Change-Id: I2d133146223a6b185347662b47cc2bd6355a0900
2015-07-13 20:39:17 -07:00