Add functional test hook for fwaas command

This patch adds a hook into functional test so that
fwaas command test runs.

Change-Id: Ib4ba644b22db0df91a9b0c7011b46ece337198af
Closes-Bug: #1604510
This commit is contained in:
Hirofumi Ichihara 2016-07-20 03:09:51 +09:00
parent 20047f2ad0
commit 6bc4685f6b
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,2 @@
enable_plugin neutron-fwaas git://git.openstack.org/openstack/neutron-fwaas
enable_service q-fwaas

20
neutronclient/tests/functional/hooks/gate_hook.sh Normal file → Executable file
View File

@ -4,6 +4,26 @@ 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
# Inject config from hook into localrc
function load_rc_hook {
local hook="$1"
config=$(cat $GATE_HOOKS/$hook)
export DEVSTACK_LOCAL_CONFIG+="
# generated from hook '$hook'
${config}
"
}
if [ "$VENV" == "functional" ]
then
load_rc_hook fwaas
fi
if [ "$VENV" == "functional-adv-svcs" ]
then
export DEVSTACK_LOCAL_CONFIG="enable_plugin neutron-vpnaas git://git.openstack.org/openstack/neutron-vpnaas"