Add group filter fetch

This commit is contained in:
adrinr 2023-04-14 14:36:06 +01:00
parent 07f29bd8ba
commit 1301b23f02
1 changed files with 15 additions and 0 deletions

View File

@ -585,6 +585,21 @@ describe("scim", () => {
totalResults: groupCount,
})
})
it("can fetch groups using displayName filters", async () => {
const groupToFetch = _.sample(groups)
const response = await getScimGroups({
params: { filter: `displayName eq "${groupToFetch!.displayName}"` },
})
expect(response).toEqual({
Resources: [groupToFetch],
itemsPerPage: 1,
schemas: ["urn:ietf:params:scim:api:messages:2.0:ListResponse"],
startIndex: 1,
totalResults: 1,
})
})
})
})