Skip to content

Latest commit

 

History

History
58 lines (45 loc) · 1.75 KB

File metadata and controls

58 lines (45 loc) · 1.75 KB

Validation Suite Setup

  1. Start the Docker container:

    docker compose up --detach --wait
  2. 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_PORT to 8443, TRINO_SSL_MODE to https, and use:

    export TRINO_DSN="https://test@localhost:8443?catalog=memory&schema=default&SSLCertPath=/path/to/ci/docker/certs/ca.crt"

    TRINO_DSN is used by the general validation suite. The URI-focused tests in validation/tests/trino/test_uri.py build their own connection strings from the TRINO_HOST, TRINO_PORT, TRINO_CATALOG, TRINO_SCHEMA, TRINO_SSL_MODE, TRINO_SSL_CERT_PATH, and TRINO_USERNAME variables.

  3. Run the tests:

    cd validation
    pixi run test