[
https://issues.apache.org/jira/browse/CAMEL-20194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Otavio Rodolfo Piske reassigned CAMEL-20194:
--------------------------------------------
Assignee: Otavio Rodolfo Piske
> Rename container.properties files in test-infra
> -----------------------------------------------
>
> Key: CAMEL-20194
> URL: https://issues.apache.org/jira/browse/CAMEL-20194
> Project: Camel
> Issue Type: Test
> Components: tests
> Reporter: Federico Mariani
> Assignee: Otavio Rodolfo Piske
> Priority: Major
>
> Each test-infra module contains a file named container.properties that is
> used to externalize container properties (docker images).
> When using two test infra modules, for example, the kafka one and the aws
> one, since the properties file have the same name, only one gets loaded and
> an exception like this can be observed in logs
> {code:java}
> Caused by: java.lang.NullPointerException: Cannot invoke
> "String.indexOf(int)" because "fullImageName" is null
> at
> org.testcontainers.utility.DockerImageName.<init>(DockerImageName.java:71)
> at
> org.testcontainers.utility.DockerImageName.parse(DockerImageName.java:57)
> at
> org.testcontainers.containers.GenericContainer.<init>(GenericContainer.java:256)
> at
> org.apache.camel.test.infra.aws2.services.AWSContainer.<init>(AWSContainer.java:55)
> {code}
> I wonder if the code can be refactored so that properties file can have
> unique names (kafka-container.properties or aws-container.properties for
> example) in order to avoid name clash when using multiple test-infra modules.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)