From b7c1bb21adeb1e232fb6b43eed3c0712f9b47ef7 Mon Sep 17 00:00:00 2001 From: elonj Date: Tue, 18 Jan 2022 11:31:55 -0500 Subject: [PATCH] fixed GithubAuth tests Signed-off-by: elonj --- .../src/providers/github/provider.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/auth-backend/src/providers/github/provider.test.ts b/plugins/auth-backend/src/providers/github/provider.test.ts index b11ac7f5a1..15eeccc07c 100644 --- a/plugins/auth-backend/src/providers/github/provider.test.ts +++ b/plugins/auth-backend/src/providers/github/provider.test.ts @@ -93,7 +93,7 @@ describe('GithubAuthProvider', () => { const expected = { backstageIdentity: { id: 'jimmymarkum', - token: 'token-for-jimmymarkum', + token: 'token-for-user:default/jimmymarkum', }, providerInfo: { accessToken: '19xasczxcm9n7gacn9jdgm19me', @@ -138,7 +138,7 @@ describe('GithubAuthProvider', () => { const expected = { backstageIdentity: { id: 'jimmymarkum', - token: 'token-for-jimmymarkum', + token: 'token-for-user:default/jimmymarkum', }, providerInfo: { accessToken: '19xasczxcm9n7gacn9jdgm19me', @@ -181,7 +181,7 @@ describe('GithubAuthProvider', () => { const expected = { backstageIdentity: { id: 'jimmymarkum', - token: 'token-for-jimmymarkum', + token: 'token-for-user:default/jimmymarkum', }, providerInfo: { accessToken: '19xasczxcm9n7gacn9jdgm19me', @@ -224,7 +224,7 @@ describe('GithubAuthProvider', () => { const expected = { backstageIdentity: { id: 'daveboyle', - token: 'token-for-daveboyle', + token: 'token-for-user:default/daveboyle', }, providerInfo: { accessToken: @@ -268,7 +268,7 @@ describe('GithubAuthProvider', () => { response: { backstageIdentity: { id: 'ipd12039', - token: 'token-for-ipd12039', + token: 'token-for-user:default/ipd12039', }, providerInfo: { accessToken: 'a.b.c', @@ -322,7 +322,7 @@ describe('GithubAuthProvider', () => { response: { backstageIdentity: { id: 'mockuser', - token: 'token-for-mockuser', + token: 'token-for-user:default/mockuser', }, profile: { displayName: 'Mocked User',