13 lines
261 B
Go
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)
|
|
}
|
|
}
|