From 0fc042ca35b9ee6d4c6dc650662d40f189018a49 Mon Sep 17 00:00:00 2001 From: eric sciple Date: Mon, 1 Nov 2021 11:43:18 -0500 Subject: set insteadOf url for org-id (#621) --- __test__/git-auth-helper.test.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to '__test__/git-auth-helper.test.ts') diff --git a/__test__/git-auth-helper.test.ts b/__test__/git-auth-helper.test.ts index b39d352..e14e948 100644 --- a/__test__/git-auth-helper.test.ts +++ b/__test__/git-auth-helper.test.ts @@ -518,12 +518,17 @@ describe('git-auth-helper tests', () => { await authHelper.configureSubmoduleAuth() // Assert - expect(mockSubmoduleForeach).toHaveBeenCalledTimes(3) + expect(mockSubmoduleForeach).toHaveBeenCalledTimes(4) expect(mockSubmoduleForeach.mock.calls[0][0]).toMatch( /unset-all.*insteadOf/ ) expect(mockSubmoduleForeach.mock.calls[1][0]).toMatch(/http.*extraheader/) - expect(mockSubmoduleForeach.mock.calls[2][0]).toMatch(/url.*insteadOf/) + expect(mockSubmoduleForeach.mock.calls[2][0]).toMatch( + /url.*insteadOf.*git@github.com:/ + ) + expect(mockSubmoduleForeach.mock.calls[3][0]).toMatch( + /url.*insteadOf.*org-123456@github.com:/ + ) } ) @@ -770,7 +775,8 @@ async function setup(testName: string): Promise { repositoryPath: '', sshKey: sshPath ? 'some ssh private key' : '', sshKnownHosts: '', - sshStrict: true + sshStrict: true, + workflowOrganizationId: 123456 } } -- cgit v1.2.3