1
0
mirror of https://github.com/bitwarden/directory-connector synced 2026-01-04 17:43:31 +00:00

[PM-26671] Google workspace integration tests (#894)

Add tests for Google Workspace - not enabled in CI yet
This commit is contained in:
Thomas Rittson
2025-10-28 11:31:02 +10:00
committed by GitHub
parent daeb96713f
commit fe01b49df1
26 changed files with 259 additions and 37 deletions

View File

@@ -0,0 +1,26 @@
import { Jsonify } from "type-fest";
import { GroupEntry } from "../../src/models/groupEntry";
// These must match the Google Workspace seed data
const data: Jsonify<GroupEntry>[] = [
{
externalId: "0319y80a3anpxhj",
groupMemberReferenceIds: [],
name: "Integration Test Group A",
referenceId: "0319y80a3anpxhj",
userMemberExternalIds: ["111605910541641314041", "111147009830456099026"],
users: [],
},
{
externalId: "02afmg28317uyub",
groupMemberReferenceIds: [],
name: "Integration Test Group B",
referenceId: "02afmg28317uyub",
userMemberExternalIds: ["111147009830456099026", "100150970267699397306"],
users: [],
},
];
export const groupFixtures = data.map((g) => GroupEntry.fromJSON(g));