exasol_integration_test_docker_environment.lib.api.spawn_test_environment_with_test_container#

exasol_integration_test_docker_environment.lib.api.spawn_test_environment_with_test_container(environment_name: str, test_container_content: exasol_integration_test_docker_environment.lib.data.test_container_content_description.TestContainerContentDescription, database_port_forward: Optional[int] = None, bucketfs_port_forward: Optional[int] = None, ssh_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 = '8.31.0', docker_db_image_name: str = 'exasol/docker-db', db_os_access: str = 'DOCKER_EXEC', create_certificates: bool = False, additional_db_parameter: Tuple[str, ...] = (), 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, log_level: Optional[str] = None, use_job_specific_log_file: bool = False) 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