keycloak-scim/js/apps/account-ui/test/realm.setup.ts
Jon Koops c17023270c
Use correct PNPM workspace names on CI (#29973)
Closes #29976

Signed-off-by: Jon Koops <jonkoops@gmail.com>
Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
Co-authored-by: Hynek Mlnarik <hmlnarik@redhat.com>
2024-06-03 13:42:44 +02:00

18 lines
851 B
TypeScript

import RealmRepresentation from "@keycloak/keycloak-admin-client/lib/defs/realmRepresentation";
import { test as setup } from "@playwright/test";
import { importRealm } from "./admin-client";
import groupsRealm from "./realms/groups-realm.json" assert { type: "json" };
import resourcesRealm from "./realms/resources-realm.json" assert { type:
"json" };
import userProfileRealm from "./realms/user-profile-realm.json" assert { type:
"json" };
import verifiableCredentialsRealm from "./realms/verifiable-credentials-realm.json" assert { type:
"json" };
setup("import realm", async () => {
await importRealm(groupsRealm as RealmRepresentation);
await importRealm(resourcesRealm as RealmRepresentation);
await importRealm(userProfileRealm as RealmRepresentation);
await importRealm(verifiableCredentialsRealm as RealmRepresentation);
});