docker build . -f docker/Dockerfile -t foo:barUpdate tests/test-definition.yaml by setting the trino-lb dimension to foo:bar.
Afterwards load the image into kind
kind load docker-image foo:barLast but not least run
./scripts/run_tests.shFirst, port-forward trino-lb to localhost:
kubectl -n <namespace> port-forward svc/trino-lb 8443:8443Please make sure that trinoLb.externalAddress in your trino-lb config points to https://127.0.0.1:8443, so that it populates the nextUri correctly.
Then start mitmproxy:
# nix-shell -p mitmproxy
mitmproxy --listen-port 8080 --ssl-insecureAfterwards connect with trino-cli:
~/Downloads/trino-cli-478 --server https://127.0.0.1:8443 --insecure --user admin --password --http-proxy=127.0.0.1:8080
export TRINO_USER="admin"
export TRINO_PASSWORD="adminadmin"
echo 'SELECT * FROM tpch.sf100.customer' | ~/Downloads/trino-cli-478 --server https://127.0.0.1:8443 --insecure --password --http-proxy 127.0.0.1:8080