summaryrefslogtreecommitdiff
path: root/neutronclient/tests/functional/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'neutronclient/tests/functional/hooks')
-rw-r--r--neutronclient/tests/functional/hooks/fwaas2
-rwxr-xr-xneutronclient/tests/functional/hooks/gate_hook.sh42
-rwxr-xr-xneutronclient/tests/functional/hooks/post_test_hook.sh68
-rw-r--r--neutronclient/tests/functional/hooks/vpnaas1
4 files changed, 0 insertions, 113 deletions
diff --git a/neutronclient/tests/functional/hooks/fwaas b/neutronclient/tests/functional/hooks/fwaas
deleted file mode 100644
index d9fc704..0000000
--- a/neutronclient/tests/functional/hooks/fwaas
+++ /dev/null
@@ -1,2 +0,0 @@
-enable_plugin neutron-fwaas https://opendev.org/openstack/neutron-fwaas
-enable_service q-fwaas
diff --git a/neutronclient/tests/functional/hooks/gate_hook.sh b/neutronclient/tests/functional/hooks/gate_hook.sh
deleted file mode 100755
index c1721d8..0000000
--- a/neutronclient/tests/functional/hooks/gate_hook.sh
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/usr/bin/env bash
-
-set -ex
-
-VENV=${1:-"functional"}
-
-GATE_DEST=$BASE/new
-NEUTRONCLIENT_PATH=$GATE_DEST/python-neutronclient
-GATE_HOOKS=$NEUTRONCLIENT_PATH/neutronclient/tests/functional/hooks
-DEVSTACK_PATH=$GATE_DEST/devstack
-LOCAL_CONF=$DEVSTACK_PATH/late-local.conf
-DSCONF=/tmp/devstack-tools/bin/dsconf
-
-# Install devstack-tools used to produce local.conf; we can't rely on
-# test-requirements.txt because the gate hook is triggered before neutronclient
-# is installed
-sudo -H pip install virtualenv
-virtualenv /tmp/devstack-tools
-/tmp/devstack-tools/bin/pip install -U devstack-tools==0.4.0
-
-# Inject config from hook into localrc
-function load_rc_hook {
- local hook="$1"
- local tmpfile
- local config
- tmpfile=$(tempfile)
- config=$(cat $GATE_HOOKS/$hook)
- echo "[[local|localrc]]" > $tmpfile
- $DSCONF setlc_raw $tmpfile "$config"
- $DSCONF merge_lc $LOCAL_CONF $tmpfile
- rm -f $tmpfile
-}
-
-
-if [ "$VENV" == "functional-adv-svcs" ]
-then
- load_rc_hook fwaas
- load_rc_hook vpnaas
-fi
-
-export DEVSTACK_LOCALCONF=$(cat $LOCAL_CONF)
-$BASE/new/devstack-gate/devstack-vm-gate.sh
diff --git a/neutronclient/tests/functional/hooks/post_test_hook.sh b/neutronclient/tests/functional/hooks/post_test_hook.sh
deleted file mode 100755
index d62d139..0000000
--- a/neutronclient/tests/functional/hooks/post_test_hook.sh
+++ /dev/null
@@ -1,68 +0,0 @@
-#!/bin/bash -xe
-
-# 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.
-
-# This script is executed inside post_test_hook function in devstack gate.
-
-SCRIPTS_DIR="/usr/os-testr-env/bin/"
-
-function generate_test_logs {
- local path="$1"
- # Compress all $path/*.txt files and move the directories holding those
- # files to /opt/stack/logs. Files with .log suffix have their
- # suffix changed to .txt (so browsers will know to open the compressed
- # files and not download them).
- if [ -d "$path" ]
- then
- sudo find $path -iname "*.log" -type f -exec mv {} {}.txt \; -exec gzip -9 {}.txt \;
- sudo mv $path/* /opt/stack/logs/
- fi
-}
-
-function generate_testr_results {
- # Give job user rights to access tox logs
- sudo -H -u $USER chmod o+rw .
- sudo -H -u $USER chmod o+rw -R .stestr
- if [ -f ".stestr/0" ] ; then
- .tox/$VENV/bin/subunit-1to2 < .stestr/0 > ./stestr.subunit
- $SCRIPTS_DIR/subunit2html ./stestr.subunit testr_results.html
- gzip -9 ./stestr.subunit
- gzip -9 ./testr_results.html
- sudo mv ./*.gz /opt/stack/logs/
- fi
-
- if [ "$venv" == "functional" ] || [ "$venv" == "functional-adv-svcs" ]
- then
- generate_test_logs "/tmp/${venv}-logs"
- fi
-}
-
-export NEUTRONCLIENT_DIR="$BASE/new/python-neutronclient"
-
-sudo chown -R $USER:stack $NEUTRONCLIENT_DIR
-
-# Go to the neutronclient dir
-cd $NEUTRONCLIENT_DIR
-
-# Run tests
-VENV=${1:-"functional"}
-echo "Running neutronclient functional test suite"
-set +e
-# Preserve env for OS_ credentials
-sudo -E -H -u $USER tox -e $VENV
-EXIT_CODE=$?
-set -e
-
-# Collect and parse result
-generate_testr_results
-exit $EXIT_CODE
diff --git a/neutronclient/tests/functional/hooks/vpnaas b/neutronclient/tests/functional/hooks/vpnaas
deleted file mode 100644
index 8b94b37..0000000
--- a/neutronclient/tests/functional/hooks/vpnaas
+++ /dev/null
@@ -1 +0,0 @@
-enable_plugin neutron-vpnaas https://opendev.org/openstack/neutron-vpnaas