Exasol Integration Test Docker Environment

6.1.0 · active · verified Fri Apr 17

The Exasol Integration Test Docker Environment (ITDE) provides a Python API and CLI to easily spawn and manage Exasol database instances within Docker for integration testing. It ensures a consistent and isolated environment for running tests against various Exasol DB versions. The current version is 6.1.0, with frequent minor/patch releases and occasional major releases driven by Exasol DB updates or significant API changes.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to use `DockerTestEnvironment` to launch an Exasol database instance in Docker. It automatically pulls the specified Docker image, configures the environment, and provides connection details. The `with` statement ensures the environment is properly shut down afterwards.

from exasol_integration_test_docker_environment.environment.docker_test_environment import DockerTestEnvironment

# Configure with a supported Exasol Docker DB version. (e.g., 2025.1.8, 8.29.13)
# Check the library's GitHub for currently supported versions.
EXASOL_DB_VERSION = "8.34.0" # Or '2025.1.8'

try:
    with DockerTestEnvironment(
        docker_db_version=EXASOL_DB_VERSION,
        name="my_integration_test"
    ) as environment:
        connection_info = environment.get_connection_info()
        print(f"Exasol DB IP: {connection_info.host}")
        print(f"Exasol DB Port: {connection_info.port}")
        print(f"Exasol DB User: {connection_info.user}")
        print(f"Exasol DB Password: {connection_info.password}")
        print(f"Exasol DB Schema: {connection_info.schema}")

        # Your test code goes here, using connection_info to connect to the DB
        print("Exasol test environment is running.")

except Exception as e:
    print(f"Failed to spawn Exasol Docker environment: {e}")

view raw JSON →