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 2024/01/06 11:17:34 UTC
(camel) branch main updated: CAMEL-20279 - provide retry attempts for known flaky container start during tests
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
The following commit(s) were added to refs/heads/main by this push:
new b1ccf6d99f6 CAMEL-20279 - provide retry attempts for known flaky container start during tests
b1ccf6d99f6 is described below
commit b1ccf6d99f6b3459571af5b882cd1a0ece9c4bb5
Author: Aurélien Pupier <ap...@redhat.com>
AuthorDate: Fri Jan 5 17:55:35 2024 +0100
CAMEL-20279 - provide retry attempts for known flaky container start
during tests
Some containers are known to be flaky during startup, provide a
"reasonable" retry number (5) attempts to workaround it and not affect
the tests.
Signed-off-by: Aurélien Pupier <ap...@redhat.com>
---
.../apache/camel/test/infra/aws2/services/AWSLocalContainerService.java | 1 +
.../hashicorp/vault/services/HashicorpVaultLocalContainerService.java | 1 +
2 files changed, 2 insertions(+)
diff --git a/test-infra/camel-test-infra-aws-v2/src/test/java/org/apache/camel/test/infra/aws2/services/AWSLocalContainerService.java b/test-infra/camel-test-infra-aws-v2/src/test/java/org/apache/camel/test/infra/aws2/services/AWSLocalContainerService.java
index cc38e0752d6..0c9d206d518 100644
--- a/test-infra/camel-test-infra-aws-v2/src/test/java/org/apache/camel/test/infra/aws2/services/AWSLocalContainerService.java
+++ b/test-infra/camel-test-infra-aws-v2/src/test/java/org/apache/camel/test/infra/aws2/services/AWSLocalContainerService.java
@@ -103,6 +103,7 @@ public abstract class AWSLocalContainerService implements AWSService, ContainerS
@Override
public void initialize() {
LOG.debug("Trying to start the container");
+ container.withStartupAttempts(5);
container.start();
registerProperties();
diff --git a/test-infra/camel-test-infra-hashicorp-vault/src/test/java/org/apache/camel/test/infra/hashicorp/vault/services/HashicorpVaultLocalContainerService.java b/test-infra/camel-test-infra-hashicorp-vault/src/test/java/org/apache/camel/test/infra/hashicorp/vault/services/HashicorpVaultLocalContainerService.java
index 05fa0f8784e..8c4753198df 100644
--- a/test-infra/camel-test-infra-hashicorp-vault/src/test/java/org/apache/camel/test/infra/hashicorp/vault/services/HashicorpVaultLocalContainerService.java
+++ b/test-infra/camel-test-infra-hashicorp-vault/src/test/java/org/apache/camel/test/infra/hashicorp/vault/services/HashicorpVaultLocalContainerService.java
@@ -89,6 +89,7 @@ public class HashicorpVaultLocalContainerService implements HashicorpVaultServic
@Override
public void initialize() {
LOG.info("Trying to start the Hashicorp Vault container");
+ container.withStartupAttempts(5);
container.start();
registerProperties();