Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions coordination/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
<artifactId>ydb-sdk-common</artifactId>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>tech.ydb.test</groupId>
<artifactId>ydb-junit4-support</artifactId>
Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
<log4j2.version>2.25.3</log4j2.version>
<gson.version>2.13.2</gson.version>
<mockito.version>5.21.0</mockito.version>
<testcontainers.version>1.19.3</testcontainers.version>

<testcontainers.version>2.0.3</testcontainers.version>
</properties>

<licenses>
Expand Down
7 changes: 7 additions & 0 deletions query/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,18 @@
<artifactId>ydb-sdk-table</artifactId>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>tech.ydb.test</groupId>
<artifactId>ydb-junit4-support</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j2-impl</artifactId>
Expand Down
6 changes: 6 additions & 0 deletions table/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
<artifactId>ydb-sdk-common</artifactId>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>tech.ydb.test</groupId>
<artifactId>ydb-junit4-support</artifactId>
Expand Down
6 changes: 1 addition & 5 deletions tests/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<!--
We cannot use testcontainers without junit4
See https://github.com/testcontainers/testcontainers-java/issues/87
-->
<!--<scope>test</scope>-->
<scope>test</scope>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions tests/junit4-support/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
<packaging>jar</packaging>

<dependencies>
<!-- Testcontainers depends jackson 2.15+ and it dependency overrides dependency from yc-auth-provider -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.15.4</version>
</dependency>

<dependency>
<groupId>tech.ydb.test</groupId>
<artifactId>ydb-tests-common</artifactId>
Expand Down
7 changes: 7 additions & 0 deletions tests/junit5-support/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
<packaging>jar</packaging>

<dependencies>
<!-- Testcontainers depends jackson 2.15+ and it dependency overrides dependency from yc-auth-provider -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.15.4</version>
</dependency>

<dependency>
<groupId>tech.ydb.test</groupId>
<artifactId>ydb-tests-common</artifactId>
Expand Down
Loading