Skip to content

Commit 4944537

Browse files
committed
jwtauthccl: unskip TestSubjectReservedUser and TestAudienceCheck
I'm making this commit to see if these tests were failing just because the bazel timeout was too low. I'll run it in CI multiple times before merging, since previously this was only failing in CI. Release note: None
1 parent 15b482d commit 4944537

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

pkg/ccl/jwtauthccl/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ go_library(
2828

2929
go_test(
3030
name = "jwtauthccl_test",
31-
size = "small",
31+
size = "medium",
3232
srcs = [
3333
"authentication_jwt_test.go",
3434
"main_test.go",
3535
"settings_test.go",
3636
],
37-
args = ["-test.timeout=55s"],
37+
args = ["-test.timeout=295s"],
3838
embed = [":jwtauthccl"],
3939
tags = ["ccl_test"],
4040
deps = [
@@ -46,7 +46,6 @@ go_test(
4646
"//pkg/server",
4747
"//pkg/sql/pgwire/identmap",
4848
"//pkg/testutils/serverutils",
49-
"//pkg/testutils/skip",
5049
"//pkg/testutils/testcluster",
5150
"//pkg/util/leaktest",
5251
"//pkg/util/log",

pkg/ccl/jwtauthccl/authentication_jwt_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
"github.com/cockroachdb/cockroach/pkg/security/username"
2424
"github.com/cockroachdb/cockroach/pkg/sql/pgwire/identmap"
2525
"github.com/cockroachdb/cockroach/pkg/testutils/serverutils"
26-
"github.com/cockroachdb/cockroach/pkg/testutils/skip"
2726
"github.com/cockroachdb/cockroach/pkg/util/leaktest"
2827
"github.com/cockroachdb/cockroach/pkg/util/log"
2928
"github.com/cockroachdb/cockroach/pkg/util/timeutil"
@@ -401,7 +400,6 @@ func TestSubjectMappingCheck(t *testing.T) {
401400
func TestSubjectReservedUser(t *testing.T) {
402401
defer leaktest.AfterTest(t)()
403402
defer log.Scope(t).Close(t)
404-
skip.WithIssue(t, 100412)
405403

406404
ctx := context.Background()
407405
s, _, _ := serverutils.StartServer(t, base.TestServerArgs{})
@@ -432,7 +430,6 @@ func TestSubjectReservedUser(t *testing.T) {
432430
func TestAudienceCheck(t *testing.T) {
433431
defer leaktest.AfterTest(t)()
434432
defer log.Scope(t).Close(t)
435-
skip.WithIssue(t, 100356)
436433
ctx := context.Background()
437434
s, _, _ := serverutils.StartServer(t, base.TestServerArgs{})
438435
defer s.Stopper().Stop(ctx)

pkg/ccl/jwtauthccl/main_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ func TestMain(m *testing.M) {
2929
serverutils.InitTestClusterFactory(testcluster.TestClusterFactory)
3030
os.Exit(m.Run())
3131
}
32+
33+
//go:generate ../../util/leaktest/add-leaktest.sh *_test.go

pkg/ccl/jwtauthccl/settings_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ package jwtauthccl
1111
import (
1212
"testing"
1313

14+
"github.com/cockroachdb/cockroach/pkg/util/leaktest"
1415
"github.com/stretchr/testify/require"
1516
)
1617

1718
func TestValidateAndParseJWTAuthIssuers(t *testing.T) {
19+
defer leaktest.AfterTest(t)()
1820
tests := []struct {
1921
name string
2022
setting string
@@ -57,6 +59,7 @@ func TestValidateAndParseJWTAuthIssuers(t *testing.T) {
5759
}
5860

5961
func TestValidateAndParseJWTAuthAudience(t *testing.T) {
62+
defer leaktest.AfterTest(t)()
6063
tests := []struct {
6164
name string
6265
setting string
@@ -99,6 +102,7 @@ func TestValidateAndParseJWTAuthAudience(t *testing.T) {
99102
}
100103

101104
func TestValidateAndParseJWTAuthJWKS(t *testing.T) {
105+
defer leaktest.AfterTest(t)()
102106
tests := []struct {
103107
name string
104108
setting string

0 commit comments

Comments
 (0)