From 2cbeca8d1d865d3b2b0b0d1e6c04567991a394f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E7=AB=A0=E6=B5=A9?= Date: Mon, 2 Nov 2026 04:47:26 +0800 Subject: [PATCH] =?UTF-8?q?test(ds03):=20=E8=AE=B0=E5=BD=95=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E6=8B=92=E7=BB=9D=E7=9A=84=E7=BD=91=E5=85=B3=E5=8E=9F?= =?UTF-8?q?=E5=A7=8B=E5=93=8D=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 拒绝事件补 503 与原始正文,证据可直接引用网关响应,而不只依赖客户端错误文本。 --- .../v071/formal_maintenance_recovery_r38_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/releaseadapter/v071/formal_maintenance_recovery_r38_test.go b/internal/releaseadapter/v071/formal_maintenance_recovery_r38_test.go index 4d2a177..9321eaa 100644 --- a/internal/releaseadapter/v071/formal_maintenance_recovery_r38_test.go +++ b/internal/releaseadapter/v071/formal_maintenance_recovery_r38_test.go @@ -244,7 +244,9 @@ func newR38ObjectRefusalProxy(t *testing.T, root, upstream string) *r38ObjectRef "method": r.Method, "path": r.URL.RequestURI(), "request": envelope.Request, "authorization": envelope.Authorization, "body": string(raw), "receiver": p.upstream, "gateway_scope": r.Header.Get("X-KG-Gateway-Scope"), - "dispatched": false, "forwarded": false, "refused": true, + "response_status": http.StatusServiceUnavailable, + "response_body": "r38 injected object restore refusal before dispatch\n", + "dispatched": false, "forwarded": false, "refused": true, "at": time.Now().UTC().Format(time.RFC3339Nano)}) p.flush() p.mu.Unlock()