Skip to content

Commit 076c4a0

Browse files
authored
Fix authz test for GET licenses (#3681)
Signed-off-by: Spike Curtis <spike@coder.com> Signed-off-by: Spike Curtis <spike@coder.com>
1 parent 9e35793 commit 076c4a0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

enterprise/coderd/auth_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package coderd_test
22

33
import (
44
"context"
5+
"net/http"
56
"testing"
67

78
"github.com/coder/coder/coderd/coderdtest"
@@ -21,5 +22,10 @@ func TestAuthorizeAllEndpoints(t *testing.T) {
2122
AssertAction: rbac.ActionCreate,
2223
AssertObject: rbac.ResourceLicense,
2324
}
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+
}
2430
a.Test(ctx, assertRoute, skipRoutes)
2531
}

0 commit comments

Comments
 (0)