summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--neutronclient/tests/functional/hooks/fwaas2
-rwxr-xr-x[-rw-r--r--]neutronclient/tests/functional/hooks/gate_hook.sh20
2 files changed, 22 insertions, 0 deletions
diff --git a/neutronclient/tests/functional/hooks/fwaas b/neutronclient/tests/functional/hooks/fwaas
new file mode 100644
index 0000000..0f04168
--- /dev/null
+++ b/neutronclient/tests/functional/hooks/fwaas
@@ -0,0 +1,2 @@
+enable_plugin neutron-fwaas git://git.openstack.org/openstack/neutron-fwaas
+enable_service q-fwaas \ No newline at end of file
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"