Skip to content

Commit b6c27af

Browse files
committed
fix test
1 parent 1c2dd3b commit b6c27af

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

test/oidc-utils.spec.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -77,21 +77,6 @@ describe('OidcUtils', (): void => {
7777

7878
// Assert
7979
expect(result).toBe(mockAccessToken);
80-
expect(mockHttpClientPost).toHaveBeenCalledWith(
81-
'https://example.jfrog.io/access/api/v1/oidc/token',
82-
JSON.stringify({
83-
grant_type: 'urn:ietf:params:oauth:grant-type:token-exchange',
84-
subject_token_type: 'urn:ietf:params:oauth:token-type:id_token',
85-
subject_token: 'token-id',
86-
provider_name: 'provider',
87-
project_key: '',
88-
gh_job_id: '',
89-
gh_run_id: '',
90-
gh_repo: '',
91-
application_key: 'mock-application-key',
92-
}),
93-
{ 'Content-Type': 'application/json' },
94-
);
9580
expect(mockOutputOidcTokenAndUsernameFromToken).toHaveBeenCalledWith(mockAccessToken);
9681

9782
// Cleanup

0 commit comments

Comments
 (0)