Skip to content

Commit ccd620a

Browse files
committed
test(service-automation): pin the data door control beside the flow read node's family serve
Claude-Session: https://claude.ai/code/session_01DiCSbmJrkzNhuEAier4VoJ Co-authored-by: Claude <noreply@anthropic.com>
1 parent 9e02c8c commit ccd620a

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎packages/services/service-automation/src/builtin/get-record-stored-metadata-family.integration.test.ts‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,17 @@ describe('flow get_record serves the stored-metadata family the way the data doo
185185
expect(door.checksum, 'control: the door serves the hash keyed').toMatch(KEYED);
186186
}
187187

188+
it('control: the data door serves both tables with the body projected and the hash keyed', async () => {
189+
for (const object of ['sys_metadata', 'sys_metadata_history']) {
190+
const row = await doorRow(object);
191+
const text = JSON.stringify(row);
192+
expect(text.includes(SENTINEL), `${object}: the door served the stored credential`).toBe(false);
193+
expect(text.includes(STORED_HASH), `${object}: the door served the stored hash`).toBe(false);
194+
expect(row.checksum).toMatch(KEYED);
195+
expect(JSON.parse(row.metadata).config.url).toBe(DS_URL);
196+
}
197+
});
198+
188199
for (const runAs of ['system', 'user'] as const) {
189200
for (const branch of ['one', 'list'] as const) {
190201
it(`runAs:'${runAs}', ${branch === 'one' ? 'findOne' : 'find'} branch: the output and the written record carry the projected body and the door's keyed hash`, async () => {

0 commit comments

Comments
 (0)