Skip to content

Commit 97eab8c

Browse files
committed
Rename prebuild system user reference
1 parent 514fdbf commit 97eab8c

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-
var OwnerID = uuid.MustParse("c42fdf75-3097-471c-8c33-fb52454d81c0")
5+
var SystemUserID = 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy