Test get group without members
This commit is contained in:
parent
f3e6295892
commit
c83cf33707
|
@ -715,6 +715,16 @@ describe("scim", () => {
|
||||||
status: 404,
|
status: 404,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it("should allow excluding members", async () => {
|
||||||
|
const response = await findScimGroup(group.id, {
|
||||||
|
qs: "excludedAttributes=members",
|
||||||
|
})
|
||||||
|
|
||||||
|
const { members, ...expectedResponse } = group
|
||||||
|
|
||||||
|
expect(response).toEqual(expectedResponse)
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe("DELETE /api/global/scim/v2/groups/:id", () => {
|
describe("DELETE /api/global/scim/v2/groups/:id", () => {
|
||||||
|
|
|
@ -58,9 +58,12 @@ export class ScimGroupsAPI extends ScimTestAPI {
|
||||||
return res.body as ScimGroupResponse
|
return res.body as ScimGroupResponse
|
||||||
}
|
}
|
||||||
|
|
||||||
find = async (id: string, requestSettings?: Partial<RequestSettings>) => {
|
find = async (
|
||||||
|
id: string,
|
||||||
|
requestSettings?: Partial<RequestSettings> & { qs?: string }
|
||||||
|
) => {
|
||||||
const res = await this.call(
|
const res = await this.call(
|
||||||
`/api/global/scim/v2/groups/${id}`,
|
`/api/global/scim/v2/groups/${id}?${requestSettings?.qs}`,
|
||||||
"get",
|
"get",
|
||||||
requestSettings
|
requestSettings
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue