diff --git a/backend/routers/router_test.go b/backend/routers/router_test.go index 9075874..8952d23 100644 --- a/backend/routers/router_test.go +++ b/backend/routers/router_test.go @@ -43,10 +43,13 @@ func TestCriticalRoutes(t *testing.T) { {"GET", "/api/v1/alerts/channels"}, {"POST", "/api/v1/alerts/check"}, {"GET", "/api/v1/alerts/deliveries"}, - // 审计 / 自检 / 备份 + // 审计 / 自检 {"GET", "/api/v1/audit-logs"}, {"GET", "/api/v1/system/self-check"}, - {"GET", "/api/v1/system/backup"}, + // 设置类:保留期必须同时有读和写(写要管理员) + {"GET", "/api/v1/settings/retention"}, + {"PUT", "/api/v1/settings/retention"}, + // 备份恢复接口已在上游被移除(commit f87fb4b),这里不再断言 } registered := map[string]bool{}