Skip to content

Commit 7d07994

Browse files
committed
test(dogfood): read the save answer's advisories where the meta save door serves them
Claude-Session: https://claude.ai/code/session_01QSeKYn5CmmdShCJifm6WYj Co-authored-by: Claude <noreply@anthropic.com>
1 parent 4d03a6f commit 7d07994

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/qa/dogfood/test/connector-meta-door-url-and-nested-keys.dogfood.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,8 @@ describe('connector metadata doors: an authored connector keeps no credential in
372372
const res = await stack.apiAs(admin, 'PUT', `/meta/connector/${RETRY_EMPTY}`, { ...served, retryConfig: {} });
373373
const text = await res.text();
374374
expect(res.status, text.slice(0, 300)).toBe(200);
375-
expect(JSON.parse(text).data.advisories, 'the save names the key it did not carry forward').toEqual([
375+
// The save names the key it did not carry forward.
376+
expect(JSON.parse(text).advisories, text.slice(0, 600)).toEqual([
376377
expect.objectContaining({ rule: 'withheld-key-dropped', severity: 'warning', path: 'connectors[0].retryConfig.secret' }),
377378
]);
378379
expect(text.includes(PLACEHOLDERS.nested), 'the answer names the key, never its value').toBe(false);

0 commit comments

Comments
 (0)