test(场景): 增加 DOCX 上传示例
在示例场景中加入 DOCX 附件上传用例,验证文件转发和上传响应。
This commit is contained in:
1 parent
fa937803c7
commit
7a46471d47
1 file changed
+23
@@ -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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user