Skip to content

Commit

Permalink
ACS-8262: Trying out testcontainers with different startup sequence.
Browse files Browse the repository at this point in the history
  • Loading branch information
mpichura committed Jun 28, 2024
1 parent 3817566 commit 89165c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ public static AlfrescoRepositoryContainer createExtendedRepositoryContainerWithi
pullRepositoryImage(enterprise);
AlfrescoRepositoryContainer repository = new AlfrescoRepositoryContainer(
new AlfrescoRepositoryExtension(REPOSITORY_EXTENSION, EXTENDED_REPOSITORY_LOCAL_NAME, enterprise))
.waitingFor(Wait.forLogMessage(".*Server startup in \\[\\d+\\] milliseconds.*\\n", 1))
.withStartupTimeout(Duration.ofMinutes(5))
.waitingFor(Wait.forHttp("/alfresco").forPort(8080).withStartupTimeout(Duration.ofMinutes(5)))
.withLogConsumer(new Slf4jLogConsumer(LoggerFactory.getLogger(AlfrescoRepositoryContainer.class.getSimpleName())));

Optional.ofNullable(network).ifPresent(n -> repository.withNetwork(n).withNetworkAliases(REPOSITORY_ALIAS));
Expand Down Expand Up @@ -187,6 +186,7 @@ public static GenericContainer<?> createLiveIngesterContainerWithin(Network netw
.withEnv("ALFRESCO_TRANSFORM_SHARED-FILE-STORE_PORT", "8099")
.withExposedPorts(5007)
.withStartupTimeout(Duration.ofMinutes(2))
.waitingFor(Wait.forLogMessage(".*Started LiveIngesterApplication.*", 1))
.withLogConsumer(new Slf4jLogConsumer(LoggerFactory.getLogger("LiveIngesterContainer")));

Optional.ofNullable(network).ifPresent(n -> liveIngester.withNetwork(n).withNetworkAliases(LIVE_INGESTER_ALIAS));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
public class CreateNodeE2eTest
{
private static final String BUCKET_NAME = "test-hxinsight-bucket";
private static final int MAX_ATTEMPTS = 10;
private static final int MAX_ATTEMPTS = 5;
private static final int INITIAL_DELAY_MS = 500;
private static final String PARENT_ID = "-my-";
private static final String DUMMY_CONTENT = "Dummy's file dummy content";
Expand Down

0 comments on commit 89165c5

Please sign in to comment.