Skip to content

Commit 874a006

Browse files
authored
fix(Keycloak): Wait until user created (#1535)
1 parent 9608bd9 commit 874a006

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Testcontainers.Keycloak/KeycloakBuilder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public override KeycloakContainer Build()
8989
var isMajorVersionGreaterOrEqual25 = image.MatchLatestOrNightly() || image.MatchVersion(predicate);
9090

9191
var waitStrategy = Wait.ForUnixContainer()
92+
.UntilMessageIsLogged("Added user '[^']+' to realm '[^']+'|Created temporary admin user with username \\S+")
9293
.UntilHttpRequestIsSucceeded(request =>
9394
request.ForPath("/health/ready").ForPort(isMajorVersionGreaterOrEqual25 ? KeycloakHealthPort : KeycloakPort));
9495

0 commit comments

Comments
 (0)