Skip to content

Commit 8bcb2bf

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
test(oci): align credential principal expectation with POST auth
1 parent b13eaf0 commit 8bcb2bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/sim/app/api/v2/credentials/route.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ describe('POST /api/v2/credentials', () => {
231231
expect(body).not.toContain('key-canary')
232232
expect(body).not.toContain('namespace1')
233233
expect(mocks.create).toHaveBeenCalledWith({
234-
principal: auth.principal,
234+
principal: { kind: 'personal_api_key', userId: 'user-1', keyId: 'key-1' },
235235
input: expect.objectContaining({
236236
workspaceId: WORKSPACE_ID,
237237
providerId: 'oci-object-storage-service-account',

0 commit comments

Comments
 (0)