From 7a46471d4721e7c424c273a6027c4cdd9313f8ca Mon Sep 17 00:00:00 2001 From: starrrLight Date: Fri, 16 Oct 2026 14:46:34 +0800 Subject: [PATCH] =?UTF-8?q?test(=E5=9C=BA=E6=99=AF):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=20DOCX=20=E4=B8=8A=E4=BC=A0=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在示例场景中加入 DOCX 附件上传用例,验证文件转发和上传响应。 --- tests/scenarios/example.json | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/tests/scenarios/example.json b/tests/scenarios/example.json index 5b9421f..7f6ab08 100644 --- a/tests/scenarios/example.json +++ b/tests/scenarios/example.json @@ -123,6 +123,29 @@ "upstream_path": "/upload?source=test", "file_forwarded": true } + }, + { + "id": "docx-upload", + "kind": "file", + "path": "/upload?source=test", + "headers": {"x-test": "upload"}, + "file": { + "field": "file", + "path": "fixtures/sample.docx", + "filename": "sample.docx", + "mime": "application/vnd.openxmlformats-officedocument.wordprocessingml.document" + }, + "response": { + "status": 200, + "headers": {"content-type": "application/json"}, + "body": {"stored": true} + }, + "expect": { + "status": 200, + "body": {"stored": true}, + "upstream_path": "/upload?source=test", + "file_forwarded": true + } } ] }