fix api reports and report not needed mock token

Signed-off-by: Brian Fletcher <brian@roadie.io>
This commit is contained in:
Brian Fletcher
2022-08-23 17:22:27 +01:00
parent d102f14f9e
commit 2b3b361709
2 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -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;
@@ -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',