Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0985060

Browse files
committed
conditionally skip TestAuthorizeAllEndpoints
1 parent9dc357e commit0985060

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

‎coderd/coderdtest/authorize_test.go

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

33
import (
44
"context"
5+
"os"
6+
"strings"
57
"testing"
68

79
"github.com/moby/moby/pkg/namesgenerator"
@@ -12,6 +14,9 @@ import (
1214
)
1315

1416
funcTestAuthorizeAllEndpoints(t*testing.T) {
17+
ifstrings.Contains(os.Getenv("CODER_EXPERIMENTS_TEST"),"authz_querier") {
18+
t.Skip("Skipping TestAuthorizeAllEndpoints for authz_querier experiment")
19+
}
1520
t.Parallel()
1621
client,_,api:=coderdtest.NewWithAPI(t,&coderdtest.Options{
1722
// Required for any subdomain-based proxy tests to pass.

‎enterprise/coderd/coderdenttest/coderdenttest_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import (
44
"context"
55
"fmt"
66
"net/http"
7+
"os"
8+
"strings"
79
"testing"
810

911
"github.com/stretchr/testify/require"
@@ -22,6 +24,9 @@ func TestNew(t *testing.T) {
2224
}
2325

2426
funcTestAuthorizeAllEndpoints(t*testing.T) {
27+
ifstrings.Contains(os.Getenv("CODER_EXPERIMENTS_TEST"),"authz_querier") {
28+
t.Skip("Skipping TestAuthorizeAllEndpoints for authz_querier experiment")
29+
}
2530
t.Parallel()
2631
client,_,api:=coderdenttest.NewWithAPI(t,&coderdenttest.Options{
2732
Options:&coderdtest.Options{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp