diff --git a/enterprise/coderd/auth_test.go b/enterprise/coderd/auth_test.go index 0dec78d42fb8a..b390db7cf09f5 100644 --- a/enterprise/coderd/auth_test.go +++ b/enterprise/coderd/auth_test.go @@ -2,6 +2,7 @@ package coderd_test import ( "context" + "net/http" "testing" "github.com/coder/coder/coderd/coderdtest" @@ -21,5 +22,10 @@ func TestAuthorizeAllEndpoints(t *testing.T) { AssertAction: rbac.ActionCreate, AssertObject: rbac.ResourceLicense, } + // TODO: fix this test so that there are licenses to get. + assertRoute["GET:/api/v2/licenses"] = coderdtest.RouteCheck{ + StatusCode: http.StatusOK, + NoAuthorize: true, + } a.Test(ctx, assertRoute, skipRoutes) }