Skip to content

Commit

Permalink
Fix(KeycloakUtils): Increase timeout for KeycloakRealm
Browse files Browse the repository at this point in the history
  • Loading branch information
rkubis committed Jan 27, 2025
1 parent 788ab60 commit 5c5b260
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public static void deployKeycloak(String namespace) throws InterruptedException,
// Create Keycloak Realm
Exec.executeAndCheck("oc", "apply", "-n", namespace, "-f", getKeycloakFilePath("keycloak-realm.yaml"));

Thread.sleep(Duration.ofMinutes(1).toMillis());
Thread.sleep(Duration.ofMinutes(2).toMillis());

// CREATE AND MAP KEYCLOAK CLIENT SCOPE FOR MAPPING USER ATTRIBUTES INTO TOKEN
// Get Keycloak API admin client
Expand Down Expand Up @@ -140,7 +140,7 @@ public static void deployOAuthKafkaKeycloak(String namespace) throws Interrupted
"-f", getKeycloakFilePath("keycloak_oauth_kafka-realm.yaml")
);

Thread.sleep(Duration.ofMinutes(1).toMillis());
Thread.sleep(Duration.ofMinutes(2).toMillis());

LOGGER.info("Keycloak should be deployed.");
}
Expand Down

0 comments on commit 5c5b260

Please sign in to comment.