We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e35793 commit e3cdc4eCopy full SHA for e3cdc4e
enterprise/coderd/auth_test.go
@@ -2,6 +2,7 @@ package coderd_test
2
3
import (
4
"context"
5
+ "net/http"
6
"testing"
7
8
"github.com/coder/coder/coderd/coderdtest"
@@ -21,5 +22,10 @@ func TestAuthorizeAllEndpoints(t *testing.T) {
21
22
AssertAction: rbac.ActionCreate,
23
AssertObject: rbac.ResourceLicense,
24
}
25
+ // TODO: fix this test so that there are licenses to get.
26
+ assertRoute["GET:/api/v2/licenses"] = coderdtest.RouteCheck{
27
+ StatusCode: http.StatusOK,
28
+ NoAuthorize: true,
29
+ }
30
a.Test(ctx, assertRoute, skipRoutes)
31
0 commit comments