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

Commitb377e69

Browse files
committed
linting
1 parent3ead016 commitb377e69

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

‎coderd/idpsync/idpsync_test.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ func TestParseStringSliceClaim(t *testing.T) {
137137
}
138138

139139
funcTestIsHTTPError(t*testing.T) {
140+
t.Parallel()
141+
140142
herr:= idpsync.HTTPError{}
141143
require.NotNil(t,idpsync.IsHTTPError(herr))
142144
require.NotNil(t,idpsync.IsHTTPError(&herr))

‎coderd/idpsync/organization.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"github.com/coder/coder/v2/coderd/util/slice"
1717
)
1818

19-
func (sAGPLIDPSync)OrganizationSyncEnabled()bool {
19+
func (AGPLIDPSync)OrganizationSyncEnabled()bool {
2020
// AGPL does not support syncing organizations.
2121
returnfalse
2222
}

‎enterprise/coderd/enidpsync/organizations_test.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import (
2020
"github.com/coder/coder/v2/coderd/idpsync"
2121
"github.com/coder/coder/v2/coderd/rbac"
2222
"github.com/coder/coder/v2/codersdk"
23+
"github.com/coder/coder/v2/enterprise/coderd/enidpsync"
2324
"github.com/coder/coder/v2/testutil"
2425
)
2526

@@ -235,7 +236,7 @@ func TestOrganizationSync(t *testing.T) {
235236
}
236237

237238
// Create a new sync object
238-
sync:=idpsync.NewSync(logger,caseData.Entitlements,caseData.Settings)
239+
sync:=enidpsync.NewSync(logger,caseData.Entitlements,caseData.Settings)
239240
for_,exp:=rangecaseData.Exps {
240241
t.Run(exp.Name,func(t*testing.T) {
241242
params,httpErr:=sync.ParseOrganizationClaims(ctx,exp.Claims)

‎enterprise/coderd/userauth_test.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,8 +1016,8 @@ func (r *oidcTestRunner) AssertOrganizations(t *testing.T, userIdent string, inc
10161016
userOrgs,err:=r.AdminClient.OrganizationsByUser(ctx,userIdent)
10171017
require.NoError(t,err)
10181018

1019-
cpy:=make([]uuid.UUID,len(expected))
1020-
copy(cpy,expected)
1019+
cpy:=make([]uuid.UUID,0,len(expected))
1020+
cpy=append(cpy,expected...)
10211021
hasDefault:=false
10221022
userOrgIDs:=db2sdk.List(userOrgs,func(o codersdk.Organization) uuid.UUID {
10231023
ifo.IsDefault {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp