Skip to content

Commit

Permalink
feat: wait options (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-zimnowoda authored Feb 1, 2024
1 parent e6b8665 commit 38f9053
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tasks/keycloak/keycloak.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import {
KEYCLOAK_ADMIN_PASSWORD,
KEYCLOAK_REALM,
KEYCLOAK_TOKEN_TTL,
WAIT_OPTIONS,
} from '../../validators'
import { keycloakRealm } from './config'
import {
Expand All @@ -58,12 +59,13 @@ const env = cleanEnv({
KEYCLOAK_REALM,
KEYCLOAK_TOKEN_TTL,
FEAT_EXTERNAL_IDP,
WAIT_OPTIONS,
})

const errors: string[] = []

async function main(): Promise<void> {
await waitTillAvailable(env.KC_HOSTNAME_URL)
await waitTillAvailable(env.KC_HOSTNAME_URL, undefined, env.WAIT_OPTIONS)
const keycloakAddress = env.KC_HOSTNAME_URL
const basePath = `${keycloakAddress}/admin/realms`
let token: TokenSet
Expand Down

0 comments on commit 38f9053

Please sign in to comment.