Files
姚章浩 7448d130ec
build / build (push) Successful in 1m13s
feat(settings): 汇总全部数据源配置操作审计
2026-10-27 10:42:30 +08:00

13 lines
261 B
Go

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)
}
}