From f5f7541170a7c74e5ce21db74eac3f82337091f8 Mon Sep 17 00:00:00 2001 From: Jack Palmer Date: Mon, 2 Jun 2025 11:03:44 +0100 Subject: [PATCH] fix: tests Signed-off-by: Jack Palmer --- .../src/__testUtils__/handlers.ts | 8 ++++++++ .../src/__testUtils__/mocks.ts | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/catalog-backend-module-gitlab/src/__testUtils__/handlers.ts b/plugins/catalog-backend-module-gitlab/src/__testUtils__/handlers.ts index 9ffb43a53d..77efa87878 100644 --- a/plugins/catalog-backend-module-gitlab/src/__testUtils__/handlers.ts +++ b/plugins/catalog-backend-module-gitlab/src/__testUtils__/handlers.ts @@ -89,6 +89,14 @@ const httpHandlers = [ }, ), + rest.get(`${apiBaseUrlSaas}/groups/456/members/all`, (_req, res, ctx) => { + return res(ctx.json(all_saas_users_response)); + }), + + rest.get(`${apiBaseUrlSaas}/groups/1/members/all`, (_req, res, ctx) => { + return res(ctx.json(all_saas_users_response)); + }), + /** * Users REST endpoint mocks */ diff --git a/plugins/catalog-backend-module-gitlab/src/__testUtils__/mocks.ts b/plugins/catalog-backend-module-gitlab/src/__testUtils__/mocks.ts index d9914c0d0c..43187031a2 100644 --- a/plugins/catalog-backend-module-gitlab/src/__testUtils__/mocks.ts +++ b/plugins/catalog-backend-module-gitlab/src/__testUtils__/mocks.ts @@ -1020,7 +1020,7 @@ export const all_saas_users_response: MockObject[] = [ access_level: 30, created_at: '2023-07-19T08:58:34.984Z', expires_at: null, - id: 34, + id: 36, username: 'testuser3', name: 'Test User 3', state: 'active',