diff --git a/devstack/post_test_hook.sh b/devstack/post_test_hook.sh deleted file mode 100644 index 13c168a0f..000000000 --- a/devstack/post_test_hook.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env bash -# Copyright 2016 - Nokia -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -DEVSTACK_PATH="$BASE/new" - -#Argument is received from Zuul -if [ "$1" = "api" ]; then - TESTS="topology|test_rca|test_alarms|test_resources|test_template|test_webhook" -elif [ "$1" = "datasources" ]; then - TESTS="datasources|test_events|notifiers|e2e|database" -else - TESTS="topology" -fi - -if [ "$DEVSTACK_GATE_USE_PYTHON3" == "True" ]; then - export PYTHON=python3 -fi - -sudo cp -rf $DEVSTACK_PATH/tempest/etc/logging.conf.sample $DEVSTACK_PATH/tempest/etc/logging.conf - -cd $DEVSTACK_PATH/tempest/ -sudo -E stestr init - -echo "Listing existing Tempest tests" -sudo -E stestr list vitrage_tempest_plugin | grep -E "$TESTS" | tee /tmp/vitrage_tempest_tests.list -echo "Testing $1: $TESTS..." -sudo -E stestr run --serial --subunit --load-list=/tmp/vitrage_tempest_tests.list | subunit-trace --fails diff --git a/playbooks/legacy/vitrage-dsvm-api-py27/run.yaml b/playbooks/legacy/vitrage-dsvm-api-py27/run.yaml index c900848e5..95e755680 100644 --- a/playbooks/legacy/vitrage-dsvm-api-py27/run.yaml +++ b/playbooks/legacy/vitrage-dsvm-api-py27/run.yaml @@ -42,7 +42,7 @@ export -f gate_hook function post_test_hook { - source $BASE/new/vitrage/devstack/post_test_hook.sh 'api' + source $BASE/new/vitrage-tempest-plugin/devstack/post_test_hook.sh 'api' } export -f post_test_hook diff --git a/playbooks/legacy/vitrage-dsvm-api-py35/run.yaml b/playbooks/legacy/vitrage-dsvm-api-py35/run.yaml index 64c04de48..d15a53080 100644 --- a/playbooks/legacy/vitrage-dsvm-api-py35/run.yaml +++ b/playbooks/legacy/vitrage-dsvm-api-py35/run.yaml @@ -42,7 +42,7 @@ export -f gate_hook function post_test_hook { - source $BASE/new/vitrage/devstack/post_test_hook.sh 'api' + source $BASE/new/vitrage-tempest-plugin/devstack/post_test_hook.sh 'api' } export -f post_test_hook diff --git a/playbooks/legacy/vitrage-dsvm-datasources-py27/run.yaml b/playbooks/legacy/vitrage-dsvm-datasources-py27/run.yaml index 70b9f769b..baf782e96 100644 --- a/playbooks/legacy/vitrage-dsvm-datasources-py27/run.yaml +++ b/playbooks/legacy/vitrage-dsvm-datasources-py27/run.yaml @@ -42,7 +42,7 @@ export -f gate_hook function post_test_hook { - source $BASE/new/vitrage/devstack/post_test_hook.sh 'datasources' + source $BASE/new/vitrage-tempest-plugin/devstack/post_test_hook.sh 'datasources' } export -f post_test_hook diff --git a/playbooks/legacy/vitrage-dsvm-datasources-py35/run.yaml b/playbooks/legacy/vitrage-dsvm-datasources-py35/run.yaml index 5ac8a3fe4..f06973441 100644 --- a/playbooks/legacy/vitrage-dsvm-datasources-py35/run.yaml +++ b/playbooks/legacy/vitrage-dsvm-datasources-py35/run.yaml @@ -42,7 +42,7 @@ export -f gate_hook function post_test_hook { - source $BASE/new/vitrage/devstack/post_test_hook.sh 'datasources' + source $BASE/new/vitrage-tempest-plugin/devstack/post_test_hook.sh 'datasources' } export -f post_test_hook