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

Commit97eab8c

Browse files
committed
Rename prebuild system user reference
1 parent514fdbf commit97eab8c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎coderd/prebuilds/id.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ package prebuilds
22

33
import"github.com/google/uuid"
44

5-
varOwnerID=uuid.MustParse("c42fdf75-3097-471c-8c33-fb52454d81c0")
5+
varSystemUserID=uuid.MustParse("c42fdf75-3097-471c-8c33-fb52454d81c0")

‎coderd/users_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2460,7 +2460,7 @@ func TestSystemUserBehaviour(t *testing.T) {
24602460
require.NotNil(t,regularUser)
24612461

24622462
require.True(t,systemUser.IsSystem.Bool)
2463-
require.Equal(t,systemUser.ID,prebuilds.OwnerID)
2463+
require.Equal(t,systemUser.ID,prebuilds.SystemUserID)
24642464
require.False(t,regularUser.IsSystem.Bool)
24652465
require.Equal(t,regularUser.ID,other.ID)
24662466

‎enterprise/coderd/groups_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ func TestGroup(t *testing.T) {
840840
ctx:=testutil.Context(t,testutil.WaitLong)
841841

842842
// nolint:gocritic // "This client is operating as the owner user" is fine in this case.
843-
prebuildsUser,err:=client.User(ctx,prebuilds.OwnerID.String())
843+
prebuildsUser,err:=client.User(ctx,prebuilds.SystemUserID.String())
844844
require.NoError(t,err)
845845
// The 'Everyone' group always has an ID that matches the organization ID.
846846
group,err:=userAdminClient.Group(ctx,user.OrganizationID)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp