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 2020/11/10 13:39:35 UTC

[camel] branch master updated: Ensures AWS v1 container initialization is handled via JUnit 5 lifecycle (#4589)

This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 4d57d60  Ensures AWS v1 container initialization is handled via JUnit 5 lifecycle (#4589)
4d57d60 is described below

commit 4d57d60f83223e7b78849625b1056f248b03bc42
Author: Otavio Rodolfo Piske <or...@users.noreply.github.com>
AuthorDate: Tue Nov 10 14:39:21 2020 +0100

    Ensures AWS v1 container initialization is handled via JUnit 5 lifecycle (#4589)
---
 .../camel/test/infra/aws/services/AWSLocalContainerService.java      | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test-infra/camel-test-infra-aws-v1/src/test/java/org/apache/camel/test/infra/aws/services/AWSLocalContainerService.java b/test-infra/camel-test-infra-aws-v1/src/test/java/org/apache/camel/test/infra/aws/services/AWSLocalContainerService.java
index 97927f4..b27c134 100644
--- a/test-infra/camel-test-infra-aws-v1/src/test/java/org/apache/camel/test/infra/aws/services/AWSLocalContainerService.java
+++ b/test-infra/camel-test-infra-aws-v1/src/test/java/org/apache/camel/test/infra/aws/services/AWSLocalContainerService.java
@@ -34,8 +34,6 @@ abstract class AWSLocalContainerService<T> implements AWSService<T>, ContainerSe
 
     public AWSLocalContainerService(LocalStackContainer.Service... services) {
         this.container = new LocalStackContainer().withServices(services);
-
-        container.start();
     }
 
     protected abstract String getAmazonHost();
@@ -44,6 +42,9 @@ abstract class AWSLocalContainerService<T> implements AWSService<T>, ContainerSe
 
     @Override
     public void initialize() {
+        LOG.debug("Trying to start the container");
+        container.start();
+
         getConnectionProperties();
         LOG.info("AWS service running at address {}", getServiceEndpoint());
     }