From 5af881efb1bfa837f90a1a3390d79da0ad2a1600 Mon Sep 17 00:00:00 2001 From: Michael Martin Date: Wed, 20 Mar 2024 09:28:55 -0700 Subject: [PATCH] tests: enable wasm and mount filter path --- .ci/setup_kong.sh | 7 +++++++ .ci/setup_kong_ee.sh | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/.ci/setup_kong.sh b/.ci/setup_kong.sh index c36193464..89c023368 100755 --- a/.ci/setup_kong.sh +++ b/.ci/setup_kong.sh @@ -14,6 +14,7 @@ DATABASE_USER=kong DATABASE_NAME=kong KONG_DB_PASSWORD=kong KONG_PG_HOST=pg +KONG_WASM_FILTERS_PATH=$PWD/assets/filters GATEWAY_CONTAINER_NAME=kong @@ -35,6 +36,9 @@ function deploy_kong_postgres() -e "KONG_ENFORCE_RBAC=on" \ -e "KONG_PORTAL=on" \ -e "KONG_ROUTER_FLAVOR=${KONG_ROUTER_FLAVOR}" \ + -e "KONG_WASM=on" \ + -e "KONG_WASM_FILTERS_PATH=/wasm/filters" \ + -v "$KONG_WASM_FILTERS_PATH:/wasm/filters:ro" \ -p 8000:8000 \ -p 8443:8443 \ -p 127.0.0.1:8001:8001 \ @@ -57,6 +61,9 @@ function deploy_kong_dbless() -e "KONG_ENFORCE_RBAC=on" \ -e "KONG_PORTAL=on" \ -e "KONG_ROUTER_FLAVOR=${KONG_ROUTER_FLAVOR}" \ + -e "KONG_WASM=on" \ + -e "KONG_WASM_FILTERS_PATH=/wasm/filters" \ + -v "$KONG_WASM_FILTERS_PATH:/wasm/filters:ro" \ -p 8000:8000 \ -p 8443:8443 \ -p 127.0.0.1:8001:8001 \ diff --git a/.ci/setup_kong_ee.sh b/.ci/setup_kong_ee.sh index 68dfccb8b..b319fe370 100755 --- a/.ci/setup_kong_ee.sh +++ b/.ci/setup_kong_ee.sh @@ -14,6 +14,7 @@ DATABASE_USER=kong DATABASE_NAME=kong KONG_DB_PASSWORD=kong KONG_PG_HOST=pg +KONG_WASM_FILTERS_PATH=$PWD/assets/filters GATEWAY_CONTAINER_NAME=kong @@ -47,6 +48,9 @@ function deploy_kong_ee() -e "KONG_PORTAL=on" \ -e "KONG_ADMIN_GUI_SESSION_CONF={}" \ -e "KONG_ROUTER_FLAVOR=${KONG_ROUTER_FLAVOR}" \ + -e "KONG_WASM=on" \ + -e "KONG_WASM_FILTERS_PATH=/wasm/filters" \ + -v "$KONG_WASM_FILTERS_PATH:/wasm/filters:ro" \ -p 8000:8000 \ -p 8443:8443 \ -p 8001:8001 \