From 993ecbd079d28bfa56d715791d0bd4b1b7528641 Mon Sep 17 00:00:00 2001 From: vttran Date: Mon, 8 Dec 2025 15:35:04 +0700 Subject: [PATCH 1/3] TEST: upgrade Testcontainers core to 2.0.2 Testcontainers module artifacts (postgresql, mariadb, pulsar, etc.) remain pinned to version 1.21.1 --- pom.xml | 11 ++++++----- server/apps/jpa-smtp-app/pom.xml | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 5e3c4ad094b..2d970f766a4 100644 --- a/pom.xml +++ b/pom.xml @@ -653,7 +653,8 @@ 3.8.0 0.12.6 4.2.32 - 1.21.1 + 2.0.2 + 1.21.1 6.0.0-RC3 33.4.8-jre @@ -3010,22 +3011,22 @@ org.testcontainers junit-jupiter - ${testcontainers.version} + ${testcontainers.modules.version} org.testcontainers mariadb - ${testcontainers.version} + ${testcontainers.modules.version} org.testcontainers postgresql - ${testcontainers.version} + ${testcontainers.modules.version} org.testcontainers pulsar - ${testcontainers.version} + ${testcontainers.modules.version} org.testcontainers diff --git a/server/apps/jpa-smtp-app/pom.xml b/server/apps/jpa-smtp-app/pom.xml index a8307dab257..cc3aeb34253 100644 --- a/server/apps/jpa-smtp-app/pom.xml +++ b/server/apps/jpa-smtp-app/pom.xml @@ -189,7 +189,7 @@ org.testcontainers mariadb - ${testcontainers.version} + ${testcontainers.modules.version} test From 0b76738d486a3bd1b68f9f7a68e09cb0dacc0ff4 Mon Sep 17 00:00:00 2001 From: vttran Date: Mon, 8 Dec 2025 15:37:33 +0700 Subject: [PATCH 2/3] TEST: Module apache-james-mpt-smtp-core : fix TestRule not found errors after upgrading Testcontainers to 2.0.2 Error ForwardSmtpTest.java:[49,33] cannot access org.junit.rules.TestRule [ERROR] class file for org.junit.rules.TestRule not found --- mpt/impl/smtp/core/pom.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mpt/impl/smtp/core/pom.xml b/mpt/impl/smtp/core/pom.xml index 096c751d963..7846b7cbaa4 100644 --- a/mpt/impl/smtp/core/pom.xml +++ b/mpt/impl/smtp/core/pom.xml @@ -69,6 +69,11 @@ io.rest-assured rest-assured + + junit + junit + 4.13.2 + org.testcontainers testcontainers From d30ae87dd6857000ec6d3a68086916a25e475496 Mon Sep 17 00:00:00 2001 From: vttran Date: Mon, 8 Dec 2025 15:42:08 +0700 Subject: [PATCH 3/3] Revert: [BUILD] Fix docker client API issue 47bcbd9f92c9cc622f88dece06b5072bb4b5449b --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3a498791008..911ef58f3e6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -96,7 +96,7 @@ pipeline { stage('Stable Tests') { steps { echo 'Running tests' - sh 'mvn -B -e -fae clean test ${MVN_SHOW_TIMESTAMPS} -P ci-test ${MVN_LOCAL_REPO_OPT} -Dassembly.skipAssembly=true -Dapi.version=1.44 jacoco:report-aggregate@jacoco-report' + sh 'mvn -B -e -fae clean test ${MVN_SHOW_TIMESTAMPS} -P ci-test ${MVN_LOCAL_REPO_OPT} -Dassembly.skipAssembly=true jacoco:report-aggregate@jacoco-report' } post { always { @@ -117,7 +117,7 @@ pipeline { steps { echo 'Running unstable tests' catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { - sh 'mvn -B -e -fae clean test -Punstable-tests ${MVN_SHOW_TIMESTAMPS} -P ci-test ${MVN_LOCAL_REPO_OPT} -Dassembly.skipAssembly=true -Dapi.version=1.44' + sh 'mvn -B -e -fae clean test -Punstable-tests ${MVN_SHOW_TIMESTAMPS} -P ci-test ${MVN_LOCAL_REPO_OPT} -Dassembly.skipAssembly=true' } } post {