From adffc588b6936bd1736a6de0aa8360456142e33b Mon Sep 17 00:00:00 2001 From: Mahmoud Ben Hassine Date: Wed, 7 May 2025 15:52:52 +0200 Subject: [PATCH] Temporarily disable DB2 docker-based integration tests Related to #4828 --- .../core/test/repository/Db2JobRepositoryIntegrationTests.java | 2 ++ .../support/Db2PagingQueryProviderIntegrationTests.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/test/repository/Db2JobRepositoryIntegrationTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/test/repository/Db2JobRepositoryIntegrationTests.java index 4f7e9041c..1c95a7042 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/test/repository/Db2JobRepositoryIntegrationTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/test/repository/Db2JobRepositoryIntegrationTests.java @@ -19,6 +19,7 @@ import javax.sql.DataSource; import com.ibm.db2.jcc.DB2SimpleDataSource; import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.testcontainers.containers.Db2Container; import org.testcontainers.junit.jupiter.Container; @@ -54,6 +55,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; */ @Testcontainers(disabledWithoutDocker = true) @SpringJUnitConfig +@Disabled("https://github.com/spring-projects/spring-batch/issues/4828") class Db2JobRepositoryIntegrationTests { // TODO find the best way to externalize and manage image versions diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/support/Db2PagingQueryProviderIntegrationTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/support/Db2PagingQueryProviderIntegrationTests.java index 18353345b..3a60d0684 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/support/Db2PagingQueryProviderIntegrationTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/support/Db2PagingQueryProviderIntegrationTests.java @@ -18,6 +18,7 @@ package org.springframework.batch.item.database.support; import javax.sql.DataSource; import com.ibm.db2.jcc.DB2SimpleDataSource; +import org.junit.jupiter.api.Disabled; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -37,6 +38,7 @@ import static org.springframework.test.context.jdbc.Sql.ExecutionPhase.BEFORE_TE @Testcontainers(disabledWithoutDocker = true) @SpringJUnitConfig @Sql(scripts = "query-provider-fixture.sql", executionPhase = BEFORE_TEST_CLASS) +@Disabled("https://github.com/spring-projects/spring-batch/issues/4828") class Db2PagingQueryProviderIntegrationTests extends AbstractPagingQueryProviderIntegrationTests { // TODO find the best way to externalize and manage image versions