From 79e57cdd60ec34b2b90638f277fe6e48b7f8a6cb Mon Sep 17 00:00:00 2001 From: xuans Date: Wed, 30 Sep 2026 10:27:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E9=83=A8=E7=BD=B2=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E6=8E=A5=E5=8F=A3=E9=83=A8=E5=88=86=E6=88=90=E5=8A=9F?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 按接口实际契约使用 207 Multi-Status 验证部分服务器部署成功,并保留结果脱敏与权限专项覆盖。 --- backend/internal/httpapi/task_deployment_results_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/internal/httpapi/task_deployment_results_test.go b/backend/internal/httpapi/task_deployment_results_test.go index f5ae8ba..67efc58 100644 --- a/backend/internal/httpapi/task_deployment_results_test.go +++ b/backend/internal/httpapi/task_deployment_results_test.go @@ -28,7 +28,7 @@ func TestTaskDeploymentResultsIssueAndRead(t *testing.T) { defer closeDB() response := httptest.NewRecorder() serveAdminHTTP(server, response, httptest.NewRequest(http.MethodPost, "/api/v1/domains/domain-1/issue", nil)) - if response.Code != http.StatusBadGateway { + if response.Code != http.StatusMultiStatus { t.Fatalf("部分部署失败响应错误:%d %s", response.Code, response.Body.String()) } items, err := tasks.ListTasks(t.Context(), "", 10) @@ -98,7 +98,7 @@ func TestTaskDeploymentResultsVisibility(t *testing.T) { t.Fatal(err) } for _, tc := range []struct { - name string + name string cookie *http.Cookie status int }{