Skip to content

Commit 3890ac0

Browse files
committed
test(plugin-security): the write door's answer to a moved grant is pinned whole, in every subject state
The FROM-end pin now holds the write door's answer to the one literal answer in full (status, code, class, message and details), as the earlier cross-state comparison held it, instead of three of its fields. Claude-Session: https://claude.ai/code/session_017xRBcT1w3zpekijraHJE4f Co-authored-by: Claude <noreply@anthropic.com>
1 parent 38577d9 commit 3890ac0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎packages/plugins/plugin-security/src/delegated-admin-own-name-set.posture.test.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,8 +1065,7 @@ describe('[ADR-0090 D12] a delegate can neither capture nor evict a direct grant
10651065

10661066
it('moving a grant FROM the subject TO a holder inside the scope is refused with the one answer, at the gate and through the write door, and the grant stays', async () => {
10671067
expect(await atGate(h, 'from', delegateFor(state))).toEqual(OUTSIDE_ANSWER);
1068-
const door = await throughWriteDoor(h, 'from', delegateFor(state));
1069-
expect([door.status, (door as any).code, (door as any).message]).toEqual([403, OUTSIDE_ANSWER.code, OUTSIDE_ANSWER.message]);
1068+
expect(await throughWriteDoor(h, 'from', delegateFor(state))).toEqual(OUTSIDE_ANSWER);
10701069
await expectUnmoved(h);
10711070
});
10721071

0 commit comments

Comments
 (0)