Skip to content

Commit 582989e

Browse files
committed
test(plugin-security): main's delegated-write fixture models a pre-18 store
Claude-Session: https://claude.ai/code/session_018EszgtA3V2KXBX5tf59Hi4 Co-authored-by: Claude <noreply@anthropic.com>
1 parent f99c220 commit 582989e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎packages/plugins/plugin-security/src/delegated-write-never-exceeds-delegator.test.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ import { SysUserPosition } from './objects/sys-user-position.object.js';
4545
import { SysUserPermissionSet } from './objects/sys-user-permission-set.object.js';
4646
import { SecurityPlugin } from './security-plugin.js';
4747
import { defaultPermissionSets } from './objects/default-permission-sets.js';
48+
import { relaxEveryRegisteredTenantColumn } from './pre-18-tenant-column.testkit.js';
4849

4950
const SYS = { context: { isSystem: true } } as never;
5051
const ALPHA = 'org_alpha';
@@ -124,6 +125,10 @@ async function boot(posture: TenancyPosture) {
124125
],
125126
} as never);
126127
await engine.syncSchemas();
128+
// The organization-less rows below (global sets, positions, grants) exist only
129+
// on a store built before 18.x (ADR-0131 D1 makes a fresh tenant column NOT
130+
// NULL): this is that store.
131+
await relaxEveryRegisteredTenantColumn(engine);
127132

128133
const e = engine as unknown as {
129134
insert: (o: string, row: Record<string, unknown>, opts: never) => Promise<unknown>;

0 commit comments

Comments
 (0)