You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/12/04 21:46:37 UTC
(camel) 02/02: CAMEL-20123 fix compilation
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 38b360823bc318195a0d582f8adbb6c1b264dc85
Author: ikulaga <ku...@gmail.com>
AuthorDate: Mon Dec 4 23:21:13 2023 +0600
CAMEL-20123 fix compilation
---
.../camel/test/infra/azure/common/services/AzureStorageService.java | 3 ++-
.../test/infra/postgres/services/PostgresLocalContainerService.java | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/test-infra/camel-test-infra-azure-common/src/test/java/org/apache/camel/test/infra/azure/common/services/AzureStorageService.java b/test-infra/camel-test-infra-azure-common/src/test/java/org/apache/camel/test/infra/azure/common/services/AzureStorageService.java
index 97b8f3474d8..dcee2c2d0ed 100644
--- a/test-infra/camel-test-infra-azure-common/src/test/java/org/apache/camel/test/infra/azure/common/services/AzureStorageService.java
+++ b/test-infra/camel-test-infra-azure-common/src/test/java/org/apache/camel/test/infra/azure/common/services/AzureStorageService.java
@@ -19,6 +19,7 @@ package org.apache.camel.test.infra.azure.common.services;
import org.apache.camel.test.infra.azure.common.AzureConfigs;
import org.apache.camel.test.infra.azure.common.AzureProperties;
+import org.apache.camel.test.infra.common.LocalPropertyResolver;
import org.apache.camel.test.infra.common.services.ContainerService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -28,7 +29,7 @@ public abstract class AzureStorageService implements AzureService, ContainerServ
private final AzuriteContainer container;
public AzureStorageService() {
- this(System.getProperty(AzureProperties.AZURE_CONTAINER, AzuriteContainer.IMAGE_NAME));
+ this(LocalPropertyResolver.getProperty(AzureStorageService.class, AzureProperties.AZURE_CONTAINER));
}
public AzureStorageService(String imageName) {
diff --git a/test-infra/camel-test-infra-postgres/src/test/java/org/apache/camel/test/infra/postgres/services/PostgresLocalContainerService.java b/test-infra/camel-test-infra-postgres/src/test/java/org/apache/camel/test/infra/postgres/services/PostgresLocalContainerService.java
index ce74f20f686..81beea3a11f 100644
--- a/test-infra/camel-test-infra-postgres/src/test/java/org/apache/camel/test/infra/postgres/services/PostgresLocalContainerService.java
+++ b/test-infra/camel-test-infra-postgres/src/test/java/org/apache/camel/test/infra/postgres/services/PostgresLocalContainerService.java
@@ -24,11 +24,12 @@ import org.slf4j.LoggerFactory;
import org.testcontainers.containers.PostgreSQLContainer;
public class PostgresLocalContainerService implements PostgresService, ContainerService<PostgreSQLContainer> {
+ public static final String DEFAULT_POSTGRES_CONTAINER = LocalPropertyResolver.getProperty(PostgresLocalContainerService.class, PostgresProperties.POSTGRES_CONTAINER);
private static final Logger LOG = LoggerFactory.getLogger(PostgresLocalContainerService.class);
private final PostgreSQLContainer container;
public PostgresLocalContainerService() {
- this(LocalPropertyResolver.getProperty(PostgresLocalContainerService.class, PostgresProperties.POSTGRES_CONTAINER));
+ this(DEFAULT_POSTGRES_CONTAINER);
}
public PostgresLocalContainerService(String imageName) {