exasol_integration_test_docker_environment.lib.api.spawn_test_environment#
- exasol_integration_test_docker_environment.lib.api.spawn_test_environment(environment_name: str, database_port_forward: Optional[int] = None, bucketfs_port_forward: Optional[int] = None, db_mem_size: str = '2 GiB', db_disk_size: str = '2 GiB', nameserver: Tuple[str, ...] = (), docker_runtime: Optional[str] = None, docker_db_image_version: str = '7.1.14', docker_db_image_name: str = 'exasol/docker-db', create_certificates: bool = False, source_docker_repository_name: str = 'exasol/script-language-container', source_docker_tag_prefix: str = '', source_docker_username: Optional[str] = None, source_docker_password: Optional[str] = None, target_docker_repository_name: str = 'exasol/script-language-container', target_docker_tag_prefix: str = '', target_docker_username: Optional[str] = None, target_docker_password: Optional[str] = None, output_directory: str = '.build_output', temporary_base_directory: str = '/tmp', workers: int = 5, task_dependencies_dot_file: Optional[str] = None) Tuple[exasol_integration_test_docker_environment.lib.data.environment_info.EnvironmentInfo, Callable[[], None]] #
This function spawns a test environment with a docker-db container and a connected test-container. The test-container is reachable by the database for output redirects of UDFs. The function returns an environment_info object, describing the environment, and a cleanup-method, which can be used to stop the environment. raises: TaskRuntimeError if spawning the test environment fails