From e3761cc2f48d64aa4296914b5a96c920ff313c36 Mon Sep 17 00:00:00 2001 From: Christoph Pirkl <4711730+kaklakariada@users.noreply.github.com> Date: Mon, 18 Nov 2024 14:19:15 +0100 Subject: [PATCH] #66 Wait for extracted container (#88) Co-authored-by: Automatic Dependency Updater --- doc/changes/changes_2.1.6.md | 6 +++++- .../testcontainers/ExasolTestcontainerTestSetup.java | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/doc/changes/changes_2.1.6.md b/doc/changes/changes_2.1.6.md index 18ee1bd..c0f52b2 100644 --- a/doc/changes/changes_2.1.6.md +++ b/doc/changes/changes_2.1.6.md @@ -1,4 +1,4 @@ -# Exasol Test Setup Abstraction Java 2.1.6, released 2024-??-?? +# Exasol Test Setup Abstraction Java 2.1.6, released 2024-11-18 Code name: Fixed vulnerability CVE-2024-47535 in io.netty:netty-common:jar:4.1.112.Final:runtime @@ -18,6 +18,10 @@ Netty is an asynchronous event-driven network application framework for rapid de * #86: Fixed vulnerability CVE-2024-47535 in dependency `io.netty:netty-common:jar:4.1.112.Final:runtime` +## Bugfixes + +* #66: Wait for DB container to be extracted + ## Dependency Updates ### Compile Dependency Updates diff --git a/src/main/java/com/exasol/exasoltestsetup/testcontainers/ExasolTestcontainerTestSetup.java b/src/main/java/com/exasol/exasoltestsetup/testcontainers/ExasolTestcontainerTestSetup.java index 4763df7..d11dff1 100644 --- a/src/main/java/com/exasol/exasoltestsetup/testcontainers/ExasolTestcontainerTestSetup.java +++ b/src/main/java/com/exasol/exasoltestsetup/testcontainers/ExasolTestcontainerTestSetup.java @@ -11,8 +11,7 @@ import org.testcontainers.containers.Container; import com.exasol.bucketfs.Bucket; -import com.exasol.containers.ExasolContainer; -import com.exasol.containers.ExasolDockerImageReference; +import com.exasol.containers.*; import com.exasol.errorreporting.ExaError; import com.exasol.exasoltestsetup.*; import com.exasol.exasoltestsetup.identity.IdentityProvider; @@ -83,7 +82,8 @@ private static class SetupBuilder { @SuppressWarnings("resource") // Resources will be closed in close method. SetupBuilder(final String defaultExasolVersion) { - exasolContainer = new ExasolContainer<>(defaultExasolVersion).withReuse(true); + exasolContainer = new ExasolContainer<>(defaultExasolVersion).withReuse(true) + .withRequiredServices(ExasolService.BUCKETFS, ExasolService.JDBC, ExasolService.UDF); this.keyPair = generateKeyPair(); }