Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ref #581: camel-debezium-mysql - Use the tag corresponding to debezium - 4.9 #583

Merged
merged 1 commit into from
Jan 21, 2025
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
36 changes: 36 additions & 0 deletions tests/features/camel-debezium-mysql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public void testResultMock() throws Exception {

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);
Expand All @@ -54,7 +53,7 @@ public static final class ExternalResourceProviders {

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);
Expand Down
Loading