From c454eb325507b0f33d3e8c083a75602023fde2a8 Mon Sep 17 00:00:00 2001 From: enlineawork Date: Wed, 9 Sep 2026 15:29:06 -0300 Subject: [PATCH] test(f6.1): block legacy operator snapshot search contracts --- .../unit/f6-1-operational-context-consistency.test.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/api-v3/test/unit/f6-1-operational-context-consistency.test.ts b/api-v3/test/unit/f6-1-operational-context-consistency.test.ts index 1bd2514..4e388cf 100644 --- a/api-v3/test/unit/f6-1-operational-context-consistency.test.ts +++ b/api-v3/test/unit/f6-1-operational-context-consistency.test.ts @@ -27,6 +27,17 @@ test('F6.1 blocks operator mutation through generic Inventory edit DTOs', () => } }); +test('F6.1 rejects legacy Inventory searches that filter by operator snapshot', () => { + const listDto = source('src/asset-master/dto/list-assets-query.dto.ts'); + const treeDto = source('src/asset-master/dto/list-asset-tree-query.dto.ts'); + + for (const dto of [listDto, treeDto]) { + assert.match(dto, /operatorCompanyId\?: string/); + assert.match(dto, /@IsEmpty/); + assert.match(dto, /Filtrá la Operadora mediante la relación temporal del Área/); + } +}); + test('F6.1 resolves temporal Inventory operator from Area relation history', () => { const temporal = source('src/asset-master/asset-temporal.service.ts');