Skip to content

Commit ef928e4

Browse files
committed
linting
1 parent ac313a7 commit ef928e4

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

coderd/database/queries.sql.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/idpsync/group_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,8 @@ func TestApplyGroupDifference(t *testing.T) {
498498
for _, tc := range testCase {
499499
tc := tc
500500
t.Run(tc.Name, func(t *testing.T) {
501+
t.Parallel()
502+
501503
mgr := runtimeconfig.NewManager()
502504
db, _ := dbtestutil.NewDB(t)
503505

enterprise/coderd/userauth_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ func TestUserOIDC(t *testing.T) {
438438
},
439439
DeploymentValues: func(dv *codersdk.DeploymentValues) {
440440
dv.OIDC.GroupField = groupClaim
441-
dv.OIDC.GroupMapping = serpent.Struct[map[string]string]{map[string]string{oidcGroupName: coderGroupName}}
441+
dv.OIDC.GroupMapping = serpent.Struct[map[string]string]{Value: map[string]string{oidcGroupName: coderGroupName}}
442442
},
443443
})
444444

@@ -750,7 +750,7 @@ func TestGroupSync(t *testing.T) {
750750
// From a,c,b -> b,c,d
751751
name: "ChangeUserGroups",
752752
modDV: func(dv *codersdk.DeploymentValues) {
753-
dv.OIDC.GroupMapping = serpent.Struct[map[string]string]{map[string]string{"D": "d"}}
753+
dv.OIDC.GroupMapping = serpent.Struct[map[string]string]{Value: map[string]string{"D": "d"}}
754754
},
755755
initialOrgGroups: []string{"a", "b", "c", "d"},
756756
initialUserGroups: []string{"a", "b", "c"},
@@ -796,7 +796,7 @@ func TestGroupSync(t *testing.T) {
796796
dv.OIDC.GroupAutoCreate = true
797797
// Only single letter groups
798798
dv.OIDC.GroupRegexFilter = serpent.Regexp(*regexp.MustCompile("^[a-z]$"))
799-
dv.OIDC.GroupMapping = serpent.Struct[map[string]string]{map[string]string{"zebra": "z"}}
799+
dv.OIDC.GroupMapping = serpent.Struct[map[string]string]{Value: map[string]string{"zebra": "z"}}
800800
},
801801
initialOrgGroups: []string{"a", "b", "c", "d"},
802802
initialUserGroups: []string{"a", "b", "c"},

0 commit comments

Comments
 (0)