From fd99dbe2ea8236dfc07b574b7c406dd2eb6ad88e Mon Sep 17 00:00:00 2001 From: Eric Brown Date: Wed, 2 May 2018 08:49:49 -0700 Subject: [PATCH] Remove the unused integration tests Since bandit is no longer a part of openstack, there is no longer a need to run integration tests on openstack projects. Signed-off-by: Eric Brown --- scripts/integration-test.sh | 54 ------------------------------------- tox.ini | 5 ---- 2 files changed, 59 deletions(-) delete mode 100644 scripts/integration-test.sh diff --git a/scripts/integration-test.sh b/scripts/integration-test.sh deleted file mode 100644 index 8435b0074..000000000 --- a/scripts/integration-test.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash - -# Usage: integration-test.sh {organization} {project} {path-to-clone} -# Example usage: -# $ integration-test.sh openstack barbican -# $ integration-test.sh openstack keystone -# $ integration-test.sh openstack keystonemiddleware -# $ integration-test.sh openstack sahara -# $ integration-test.sh openstack python-keystoneclient \ -# /opt/openstack/python-keystoneclient -set -x -set -e - -if [[ $# -lt 2 ]]; then - echo "Script requires at least two arguments to run." - echo "Usage: $0 organization project [path-to-clone]" - exit 1 -fi - -REPO_ROOT=${REPO_ROOT:-git://git.openstack.org} -org=$1 -project=$2 - -if [[ $# -eq 3 ]] ; then - projectdir=$3 - clone=0 -else - projectdir=$project - clone=1 -fi - -workdir="$(pwd)" - -if [[ $clone -eq 1 ]] ; then - tempdir="$(mktemp -d)" - trap "rm -rf $tempdir" EXIT - - pushd $tempdir - git clone $REPO_ROOT/$org/$project --depth=1 -fi - -pushd $projectdir - # --notest allows us to create the tox-managed virtualenv without - # running any tests. - tox -e bandit --notest - # We then install our local version of bandit into the virtualenv - .tox/bandit/bin/pip install --force-reinstall -U $workdir - # And now we actually run the tests - tox -e bandit -popd - -if [[ $clone -eq 1 ]] ; then - popd -fi diff --git a/tox.ini b/tox.ini index 857d084cc..1bafb7ca1 100644 --- a/tox.ini +++ b/tox.ini @@ -62,11 +62,6 @@ deps = requests>=2.7.0 commands = python tools/openstack_coverage.py -[testenv:integration] -passenv = REPO_ROOT -whitelist_externals = bash -commands = bash scripts/integration-test.sh {posargs} - [testenv:docs] deps = -r{toxinidir}/doc/requirements.txt commands=