From 2b3b36170959f9b71d3b37534ea3278b3680d1f6 Mon Sep 17 00:00:00 2001 From: Brian Fletcher Date: Tue, 23 Aug 2022 17:22:27 +0100 Subject: [PATCH] fix api reports and report not needed mock token Signed-off-by: Brian Fletcher --- plugins/scaffolder-backend/api-report.md | 2 +- plugins/scaffolder-backend/src/service/router.test.ts | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/scaffolder-backend/api-report.md b/plugins/scaffolder-backend/api-report.md index c692cee9aa..4115aa7645 100644 --- a/plugins/scaffolder-backend/api-report.md +++ b/plugins/scaffolder-backend/api-report.md @@ -420,7 +420,7 @@ export const createPublishGitlabMergeRequestAction: (options: { branchName: string; targetPath: string; token?: string | undefined; - commitAction?: 'update' | 'delete' | 'create' | undefined; + commitAction?: 'update' | 'create' | 'delete' | undefined; projectid?: string | undefined; removeSourceBranch?: boolean | undefined; assignee?: string | undefined; diff --git a/plugins/scaffolder-backend/src/service/router.test.ts b/plugins/scaffolder-backend/src/service/router.test.ts index 1c26ee57fd..8042d4571f 100644 --- a/plugins/scaffolder-backend/src/service/router.test.ts +++ b/plugins/scaffolder-backend/src/service/router.test.ts @@ -1000,12 +1000,8 @@ data: {"id":1,"taskId":"a-random-id","type":"completion","createdAt":"","body":{ }); it('should emit auditlog containing user identifier when backstage auth is passed', async () => { - const mockToken = - 'blob.eyJzdWIiOiJ1c2VyOmRlZmF1bHQvZ3Vlc3QiLCJuYW1lIjoiSm9obiBEb2UifQ.blob'; - await request(app) .post('/v2/tasks') - .set('Authorization', `Bearer ${mockToken}`) .send({ templateRef: stringifyEntityRef({ kind: 'template',