diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 005813e93..a6b908a79 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -31,9 +31,6 @@ jobs: distribution: 'temurin' cache: 'maven' - - name: Override docker client version # https://github.com/testcontainers/testcontainers-java/issues/11212 - run: echo "api.version=1.44" > ~/.docker-java.properties - - name: Build with Maven run: mvn $MAVEN_ARGS verify @@ -56,9 +53,6 @@ jobs: distribution: 'temurin' cache: 'maven' - - name: Override docker client version # https://github.com/testcontainers/testcontainers-java/issues/11212 - run: echo "api.version=1.44" > ~/.docker-java.properties - - name: Build with Maven run: mvn $MAVEN_ARGS test diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 76c1cf164..f6b14dd9d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -110,9 +110,6 @@ jobs: yc/pom.xml jdbc/pom.xml - - name: Override docker client version # https://github.com/testcontainers/testcontainers-java/issues/11212 - run: echo "api.version=1.44" > ~/.docker-java.properties - - name: Extract YDB Java SDK version working-directory: ./sdk run: | diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 3e2df8e40..f87b66fda 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -48,9 +48,6 @@ jobs: with: script: core.setFailed('Release name must be equal to project version') - - name: Override docker client version # https://github.com/testcontainers/testcontainers-java/issues/11212 - run: echo "api.version=1.44" > ~/.docker-java.properties - - name: Download dependencies run: mvn $MAVEN_ARGS dependency:go-offline diff --git a/coordination/pom.xml b/coordination/pom.xml index 67b3acc58..3b722e9fb 100644 --- a/coordination/pom.xml +++ b/coordination/pom.xml @@ -25,6 +25,11 @@ ydb-sdk-common + + junit + junit + test + tech.ydb.test ydb-junit4-support diff --git a/pom.xml b/pom.xml index 2b7f1ff5c..9207b63dc 100644 --- a/pom.xml +++ b/pom.xml @@ -40,7 +40,8 @@ 2.25.3 2.13.2 5.21.0 - 1.19.3 + + 2.0.3 diff --git a/query/pom.xml b/query/pom.xml index c742d7900..3b3a4a31b 100644 --- a/query/pom.xml +++ b/query/pom.xml @@ -25,11 +25,18 @@ ydb-sdk-table + + junit + junit + test + + tech.ydb.test ydb-junit4-support test + org.apache.logging.log4j log4j-slf4j2-impl diff --git a/table/pom.xml b/table/pom.xml index 2d6f8a6d7..4c5dc1f58 100644 --- a/table/pom.xml +++ b/table/pom.xml @@ -29,6 +29,12 @@ ydb-sdk-common + + junit + junit + test + + tech.ydb.test ydb-junit4-support diff --git a/tests/common/pom.xml b/tests/common/pom.xml index bea63887b..ba0e81d86 100644 --- a/tests/common/pom.xml +++ b/tests/common/pom.xml @@ -32,11 +32,7 @@ junit junit - - + test diff --git a/tests/common/src/main/java/tech/ydb/test/integration/docker/YdbDockerContainer.java b/tests/common/src/main/java/tech/ydb/test/integration/docker/YdbDockerContainer.java index 383794c0f..5dae5f2ae 100644 --- a/tests/common/src/main/java/tech/ydb/test/integration/docker/YdbDockerContainer.java +++ b/tests/common/src/main/java/tech/ydb/test/integration/docker/YdbDockerContainer.java @@ -4,9 +4,9 @@ import java.util.Collections; import java.util.UUID; +import org.apache.commons.io.IOUtils; import org.testcontainers.containers.GenericContainer; import org.testcontainers.containers.wait.strategy.Wait; -import org.testcontainers.shaded.org.apache.commons.io.IOUtils; import org.testcontainers.utility.ResourceReaper; import tech.ydb.core.impl.pool.EndpointRecord; diff --git a/tests/common/src/test/java/tech/ydb/test/integration/DockerMock.java b/tests/common/src/test/java/tech/ydb/test/integration/DockerMock.java index 4c75628b3..062151a09 100644 --- a/tests/common/src/test/java/tech/ydb/test/integration/DockerMock.java +++ b/tests/common/src/test/java/tech/ydb/test/integration/DockerMock.java @@ -59,6 +59,7 @@ public void setup(Boolean enabled, Boolean reuseSupport) { Mockito.doNothing().when(resourceReaper).registerLabelsFilterForCleanup(Mockito.anyMap()); Mockito.when(configration.environmentSupportsReuse()).thenReturn(reuseSupport); + Mockito.when(configration.getImagePullTimeout()).thenReturn(120); } @Override diff --git a/tests/junit4-support/pom.xml b/tests/junit4-support/pom.xml index 760d2faae..178d8f0c6 100644 --- a/tests/junit4-support/pom.xml +++ b/tests/junit4-support/pom.xml @@ -19,6 +19,13 @@ jar + + + com.fasterxml.jackson.core + jackson-databind + 2.15.4 + + tech.ydb.test ydb-tests-common diff --git a/tests/junit5-support/pom.xml b/tests/junit5-support/pom.xml index 6ebc8896a..4fdb653a0 100644 --- a/tests/junit5-support/pom.xml +++ b/tests/junit5-support/pom.xml @@ -19,6 +19,13 @@ jar + + + com.fasterxml.jackson.core + jackson-databind + 2.15.4 + + tech.ydb.test ydb-tests-common