Skip to content

Commit bf8244c

Browse files
committed
test(rest): the round-trip harness installs the Default Organization the tenant column needs (#25078)
Claude-Session: https://claude.ai/code/session_01LmjU2x1faLZ39DVTFyVca6 Co-authored-by: Claude <noreply@anthropic.com>
1 parent dd55248 commit bf8244c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎packages/rest/src/csv-text-cell-round-trip.test.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import { ObjectStackProtocolImplementation } from '@objectstack/metadata-protoco
3232
import { SysMetadataAuditObject, SysMetadataCommitObject, SysMetadataHistoryObject, SysMetadataObject } from '@objectstack/metadata-core';
3333
import { SysImportJob } from '@objectstack/platform-objects/audit';
3434
import { RestServer } from './rest-server';
35+
import { installDefaultOrganization } from './default-organization.testkit.js';
3536

3637
const liveEngines: ObjectQL[] = [];
3738
afterEach(async () => {
@@ -91,6 +92,9 @@ async function boot(values: string[]) {
9192
engine.registry.registerObject(noteObject('note_copy') as any);
9293
engine.registry.registerObject(SysImportJob as any);
9394
await engine.syncSchemas();
95+
// A real `single` install's Default Organization: the system writes below
96+
// derive it (ADR-0131 D9), as a fresh NOT NULL tenant column requires (D1).
97+
await installDefaultOrganization(engine);
9498
for (let i = 0; i < values.length; i++) {
9599
await engine.insert('note', { id: `r${i + 1}`, body: values[i], memo: values[i] });
96100
}

0 commit comments

Comments
 (0)