@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user