mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-21 13:23:03 +01:00
* feat(plugin): add `proxywasm` plugin The `proxywasm` plugin is a WASM Filter following the ProxyWasm ABI Specification using the proxywasm go sdk This allows extensibility with any reverse proxy who implements the ProxyWasm ABI Specification. The current WASM Filter was successfully tested with APISIX, Envoy, Nginx with ngx_wasm_module from Kong and Istio. Fixes #145
39 lines
1.0 KiB
Bash
39 lines
1.0 KiB
Bash
#!/bin/bash
|
|
|
|
DOCKER_COMPOSE_FILE=compose.yaml
|
|
DOCKER_COMPOSE_PROJECT_NAME=docker_classic_e2e
|
|
|
|
errors=0
|
|
|
|
echo "Using Docker version:"
|
|
docker version
|
|
|
|
prepare_docker_classic() {
|
|
docker compose -f $DOCKER_COMPOSE_FILE -p $DOCKER_COMPOSE_PROJECT_NAME up -d
|
|
docker compose -f $DOCKER_COMPOSE_FILE -p $DOCKER_COMPOSE_PROJECT_NAME stop whoami nginx
|
|
}
|
|
|
|
destroy_docker_classic() {
|
|
docker compose -f $DOCKER_COMPOSE_FILE -p $DOCKER_COMPOSE_PROJECT_NAME down --remove-orphans || true
|
|
}
|
|
|
|
run_docker_classic_test() {
|
|
echo "Running Docker Classic Test: $1"
|
|
prepare_docker_classic
|
|
sleep 2
|
|
go clean -testcache
|
|
if ! go test -count=1 -tags e2e -timeout 30s -run ^${1}$ github.com/acouvreur/sablier/e2e; then
|
|
errors=1
|
|
docker compose -f ${DOCKER_COMPOSE_FILE} -p ${DOCKER_COMPOSE_PROJECT_NAME} logs sablier reverseproxy
|
|
fi
|
|
destroy_docker_classic
|
|
}
|
|
|
|
trap destroy_docker_classic EXIT
|
|
|
|
run_docker_classic_test Test_Dynamic
|
|
run_docker_classic_test Test_Blocking
|
|
run_docker_classic_test Test_Multiple
|
|
run_docker_classic_test Test_Healthy
|
|
|
|
exit $errors |