Skip to content

Commit a68ece3

Browse files
committed
test(provenance): expect provenance imports to decrypt without the helper's own failure log
1 parent f4e16c5 commit a68ece3

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎apps/sim/app/api/v2/knowledge/search/route.application.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,9 @@ describe('Knowledge search provenance through the V2 route and reranker HTTP bou
276276
expect(body.data.rerankerStatus).toBe('applied')
277277
expect(providerPayload().documents).toEqual([CONTENT.replace(SECRET, '{{TOKEN}}')])
278278
expect(body.data.results[0].content).toBe(CONTENT)
279-
expect(encryptionMockFns.mockDecryptSecret).toHaveBeenCalledWith('synthetic-encrypted-token')
279+
expect(encryptionMockFns.mockDecryptSecret).toHaveBeenCalledWith('synthetic-encrypted-token', {
280+
logFailure: false,
281+
})
280282
expect(mockGenerateSearchEmbedding).toHaveBeenCalledWith(
281283
requestInput.query,
282284
expect.anything(),

‎apps/sim/lib/mothership/agent-cli/file-provenance.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ describe('file provenance at the actual CLI and model-result boundary', () => {
458458
const output = await response.text()
459459
expect(output).toContain(content)
460460
expect(trace.isPermanentlyIncomplete()).toBe(false)
461-
expect(mocks.decrypt).toHaveBeenCalledWith('fixture-ciphertext')
461+
expect(mocks.decrypt).toHaveBeenCalledWith('fixture-ciphertext', { logFailure: false })
462462
expect(
463463
JSON.stringify(
464464
inspectToolResultForCopilot({ success: true, output }, trace, 'sim_cli').result

‎apps/sim/lib/mothership/request/tools/client.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ describe('workflow client tool completion', () => {
607607
registry,
608608
})
609609

610-
expect(decryptSecret).toHaveBeenCalledWith('encrypted-child-secret')
610+
expect(decryptSecret).toHaveBeenCalledWith('encrypted-child-secret', { logFailure: false })
611611
expect(completion?.data).toEqual({
612612
success: true,
613613
workflowId: 'workflow-1',

0 commit comments

Comments
 (0)