2023-08-31 09:32:39 +00:00
|
|
|
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" };
|
2024-05-31 13:11:32 +00:00
|
|
|
import verifiableCredentialsRealm from "./realms/verifiable-credentials-realm.json" assert { type: "json" };
|
2023-08-31 09:32:39 +00:00
|
|
|
|
|
|
|
setup("import realm", async () => {
|
|
|
|
await importRealm(groupsRealm as RealmRepresentation);
|
|
|
|
await importRealm(resourcesRealm as RealmRepresentation);
|
|
|
|
await importRealm(userProfileRealm as RealmRepresentation);
|
2024-05-31 13:11:32 +00:00
|
|
|
await importRealm(verifiableCredentialsRealm as RealmRepresentation);
|
2023-08-31 09:32:39 +00:00
|
|
|
});
|