summaryrefslogtreecommitdiff
path: root/neutronclient/tests/functional/hooks/gate_hook.sh
diff options
context:
space:
mode:
Diffstat (limited to 'neutronclient/tests/functional/hooks/gate_hook.sh')
-rwxr-xr-x[-rw-r--r--]neutronclient/tests/functional/hooks/gate_hook.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/neutronclient/tests/functional/hooks/gate_hook.sh b/neutronclient/tests/functional/hooks/gate_hook.sh
index b44c237..9ad05aa 100644..100755
--- a/neutronclient/tests/functional/hooks/gate_hook.sh
+++ b/neutronclient/tests/functional/hooks/gate_hook.sh
@@ -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"