From cba2160acbb3bb66d33d585a1aaec26ef761421f Mon Sep 17 00:00:00 2001 From: asepharyana Date: Mon, 14 Sep 2026 17:28:22 +0700 Subject: [PATCH] test(fase1-s3): retarget source-reading asserts to split s3/ modules PUT streaming assert now reads s3/s3-object-write.ts and UploadPart assert reads s3/s3-multipart-handlers.ts (s3-controller.ts is a thin facade since the split). No behavior change. --- test/s3-docker-registry.test.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/s3-docker-registry.test.ts b/test/s3-docker-registry.test.ts index 52ef541..d30223a 100644 --- a/test/s3-docker-registry.test.ts +++ b/test/s3-docker-registry.test.ts @@ -144,7 +144,9 @@ describe('S3 Streaming Upload Safety', () => { * by checking the module source code. */ it('uses streaming instead of req.arrayBuffer() for PUT body', async () => { - const source = await Bun.file('src/interfaces/http/controllers/s3-controller.ts').text(); + // PUT handler lives in s3-object-write.ts since the Fase 1 split + // (s3-controller.ts is now a thin facade re-exporting the router). + const source = await Bun.file('src/interfaces/http/controllers/s3/s3-object-write.ts').text(); const codeLines = source.split('\n').filter((l) => !l.trim().startsWith('*')); const codeText = codeLines.join('\n'); @@ -170,7 +172,10 @@ describe('S3 UploadPart Streaming', () => { * req.arrayBuffer(). */ it('streams part body instead of req.arrayBuffer()', async () => { - const source = await Bun.file('src/interfaces/http/controllers/s3-controller.ts').text(); + // UploadPart handler lives in s3-multipart-handlers.ts since the Fase 1 split. + const source = await Bun.file( + 'src/interfaces/http/controllers/s3/s3-multipart-handlers.ts', + ).text(); // Find the handleUploadPart function const uploadPartSection =