This is an automated email from the ASF dual-hosted git repository.
nfilotto pushed a commit to branch camel-karaf-4.8.x
in repository https://gitbox.apache.org/repos/asf/camel-karaf.git
The following commit(s) were added to refs/heads/camel-karaf-4.8.x by this push:
new 7d8829a22 Ref #581: camel-debezium-mysql - Use the tag corresponding
to debezium (#582)
7d8829a22 is described below
commit 7d8829a22fa4a78c7e93dffb0e42f3ffae282404
Author: Nicolas Filotto <[email protected]>
AuthorDate: Tue Jan 21 16:42:09 2025 +0100
Ref #581: camel-debezium-mysql - Use the tag corresponding to debezium
(#582)
## Motivation
The integration test of camel-debezium-mysql fails due to an access denied
## Modifications
* Align the version of the docker image with the version of debezium used
for the test to prevent behavior changes
---
tests/features/camel-debezium-mysql/pom.xml | 36 ++++++++++++++++++++++
.../karaf/camel/itest/CamelDebeziumMysqlITest.java | 3 +-
2 files changed, 37 insertions(+), 2 deletions(-)
diff --git a/tests/features/camel-debezium-mysql/pom.xml
b/tests/features/camel-debezium-mysql/pom.xml
index 9a4c761cb..5c532b22d 100644
--- a/tests/features/camel-debezium-mysql/pom.xml
+++ b/tests/features/camel-debezium-mysql/pom.xml
@@ -51,4 +51,40 @@
<version>${camel-version}</version>
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>default-test</id>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ <phase>integration-test</phase>
+ <configuration>
+ <excludes>
+ <exclude>none</exclude>
+ </excludes>
+ <includes>
+ <include>**/*Test.java</include>
+ </includes>
+ <systemPropertyVariables>
+
<debezium.version>${debezium-version}</debezium.version>
+
<camel.karaf.itest.dump.logs>${dump.logs.on.failure}</camel.karaf.itest.dump.logs>
+
<camel.karaf.itest.keep.docker.images>${keep.docker.images.on.exit}</camel.karaf.itest.keep.docker.images>
+
<camel.karaf.version>${project.version}</camel.karaf.version>
+
<project.version>${project.version}</project.version>
+
<project.target>${project.build.directory}</project.target>
+
<users.file.location>${users.file.location}</users.file.location>
+
<org.ops4j.pax.logging.DefaultServiceLog.level>WARN</org.ops4j.pax.logging.DefaultServiceLog.level>
+ </systemPropertyVariables>
+
<forkedProcessExitTimeoutInSeconds>10</forkedProcessExitTimeoutInSeconds>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>
\ No newline at end of file
diff --git
a/tests/features/camel-debezium-mysql/src/test/java/org/apache/karaf/camel/itest/CamelDebeziumMysqlITest.java
b/tests/features/camel-debezium-mysql/src/test/java/org/apache/karaf/camel/itest/CamelDebeziumMysqlITest.java
index f421a2096..a86e76b8a 100644
---
a/tests/features/camel-debezium-mysql/src/test/java/org/apache/karaf/camel/itest/CamelDebeziumMysqlITest.java
+++
b/tests/features/camel-debezium-mysql/src/test/java/org/apache/karaf/camel/itest/CamelDebeziumMysqlITest.java
@@ -45,7 +45,6 @@ public class CamelDebeziumMysqlITest extends
AbstractCamelSingleFeatureResultMoc
public static final class ExternalResourceProviders {
- private static final String DEBEZIUM_VERSION = "2.7";
private static final String MYSQL_IMAGE =
"quay.io/debezium/example-mysql";
private static final String SOURCE_DB_NAME = "inventory";
private static final String SOURCE_DB_TABLE =
String.format("%s.products", SOURCE_DB_NAME);
@@ -54,7 +53,7 @@ public class CamelDebeziumMysqlITest extends
AbstractCamelSingleFeatureResultMoc
public static GenericContainerResource<MYSQLContainer>
createMySQLContainer() {
- MYSQLContainer container = new
MYSQLContainer(DockerImageName.parse(MYSQL_IMAGE).withTag(DEBEZIUM_VERSION)
+ MYSQLContainer container = new
MYSQLContainer(DockerImageName.parse(MYSQL_IMAGE).withTag(System.getProperty("debezium.version"))
.asCompatibleSubstituteFor("mysql"))
.withUsername(SOURCE_DB_USERNAME)
.withPassword(SOURCE_DB_PASSWORD);