From 93a190f4bf241e86972e69bdb7aa4b87ad43be15 Mon Sep 17 00:00:00 2001 From: xuans Date: Tue, 29 Sep 2026 22:42:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E9=BD=90=E9=98=BF=E9=87=8C=E4=BA=91?= =?UTF-8?q?=E4=BF=9D=E6=8A=A4=E5=9F=9F=E5=9B=9E=E5=BD=92=E4=BC=9A=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使保护域本地拒绝路径使用超级管理员测试会话,确保完整 HTTP API 回归覆盖新的 DNS 权限边界。 --- backend/internal/httpapi/aliyun_scope_api_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/internal/httpapi/aliyun_scope_api_test.go b/backend/internal/httpapi/aliyun_scope_api_test.go index 173ea80..05ce7b1 100644 --- a/backend/internal/httpapi/aliyun_scope_api_test.go +++ b/backend/internal/httpapi/aliyun_scope_api_test.go @@ -130,7 +130,7 @@ func TestAliyunDomainCheckUsesOnlyCurrentTargetAndProtectsPCUX(t *testing.T) { w := httptest.NewRecorder() body := strings.NewReader(`{"domain":"pcux.cn"}`) req := httptest.NewRequest(http.MethodPost, "/api/v1/dns/aliyun/check", body) - serveAdminHTTP(server, w, req) + serveSuperAdminHTTP(server, w, req) if w.Code != http.StatusOK { t.Fatalf("POST check pcux.cn 状态码 = %d,响应:%s", w.Code, w.Body.String()) }