-
Start the Docker container:
docker compose up --detach --wait
-
Set the environment variable:
export TRINO_HOST="localhost" export TRINO_PORT="8080" export TRINO_CATALOG="memory" export TRINO_SCHEMA="default" export TRINO_SSL_MODE="http" export TRINO_SSL_CERT_PATH="/path/to/ci/docker/certs/ca.crt" export TRINO_USERNAME="test"
For HTTP:
export TRINO_DSN="http://test@localhost:8080?catalog=memory&schema=default"
For the local HTTPS setup with the self-signed test CA, switch
TRINO_PORTto8443,TRINO_SSL_MODEtohttps, and use:export TRINO_DSN="https://test@localhost:8443?catalog=memory&schema=default&SSLCertPath=/path/to/ci/docker/certs/ca.crt"
TRINO_DSNis used by the general validation suite. The URI-focused tests invalidation/tests/trino/test_uri.pybuild their own connection strings from theTRINO_HOST,TRINO_PORT,TRINO_CATALOG,TRINO_SCHEMA,TRINO_SSL_MODE,TRINO_SSL_CERT_PATH, andTRINO_USERNAMEvariables. -
Run the tests:
cd validation pixi run test