feat(settings): 汇总全部数据源配置操作审计
build / build (push) Successful in 1m13s

This commit is contained in:
姚章浩
2026-10-27 10:42:30 +08:00
parent f0b12412a1
commit 7448d130ec
17 changed files with 453 additions and 56 deletions
+12
View File
@@ -0,0 +1,12 @@
package httpapi
import (
"net/http"
"testing"
)
func TestSourceAuditRequiresAdmin(t *testing.T) {
if got := classifyRole(http.MethodGet, "/api/v1/source-connections/audit"); got != roleAdmin {
t.Fatalf("audit exposes actors: required role %s", got)
}
}