Skip to content

Commit a0725b9

Browse files
committed
un-skip TestAuthorizeAllEndpoints and remove always-true conditional for authzquerier unit tests
1 parent c962897 commit a0725b9

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

coderd/coderdtest/authorize_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import (
99

1010
func TestAuthorizeAllEndpoints(t *testing.T) {
1111
t.Parallel()
12-
// TODO: DO NOT MERGE THIS
13-
t.Skip("TODO: fix all the unit tests that break when this is enabled. ")
1412
client, _, api := coderdtest.NewWithAPI(t, &coderdtest.Options{
1513
// Required for any subdomain-based proxy tests to pass.
1614
AppHostname: "*.test.coder.com",

coderd/coderdtest/coderdtest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func NewOptions(t *testing.T, options *Options) (func(http.Handler), context.Can
181181
options.Database, options.Pubsub = dbtestutil.NewDB(t)
182182
}
183183
// TODO: remove this once we're ready to enable authz querier by default.
184-
if strings.Contains(os.Getenv("CODER_EXPERIMENTS_TEST"), "authz_querier") || true {
184+
if strings.Contains(os.Getenv("CODER_EXPERIMENTS_TEST"), "authz_querier") {
185185
if options.Authorizer == nil {
186186
options.Authorizer = &RecordingAuthorizer{
187187
Wrapped: rbac.NewAuthorizer(prometheus.NewRegistry()),

enterprise/coderd/coderdenttest/coderdenttest_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ func TestNew(t *testing.T) {
2323

2424
func TestAuthorizeAllEndpoints(t *testing.T) {
2525
t.Parallel()
26-
// TODO: DO NOT MERGE THIS
27-
t.Skip("TODO: fix all the unit tests that break when this is enabled. ")
2826
client, _, api := coderdenttest.NewWithAPI(t, &coderdenttest.Options{
2927
Options: &coderdtest.Options{
3028
// Required for any subdomain-based proxy tests to pass.

0 commit comments

Comments
 (0)