diff --git a/coderd/prebuilds/id.go b/coderd/prebuilds/id.go index bde76e3f7bf14..7c2bbe79b7a6f 100644 --- a/coderd/prebuilds/id.go +++ b/coderd/prebuilds/id.go @@ -2,4 +2,4 @@ package prebuilds import "github.com/google/uuid" -var OwnerID = uuid.MustParse("c42fdf75-3097-471c-8c33-fb52454d81c0") +var SystemUserID = uuid.MustParse("c42fdf75-3097-471c-8c33-fb52454d81c0") diff --git a/coderd/users_test.go b/coderd/users_test.go index 2f3e39cac9552..0ed98647c820f 100644 --- a/coderd/users_test.go +++ b/coderd/users_test.go @@ -2460,7 +2460,7 @@ func TestSystemUserBehaviour(t *testing.T) { require.NotNil(t, regularUser) require.True(t, systemUser.IsSystem.Bool) - require.Equal(t, systemUser.ID, prebuilds.OwnerID) + require.Equal(t, systemUser.ID, prebuilds.SystemUserID) require.False(t, regularUser.IsSystem.Bool) require.Equal(t, regularUser.ID, other.ID) diff --git a/enterprise/coderd/groups_test.go b/enterprise/coderd/groups_test.go index 2f6660c9eb280..1f5fb6934ac65 100644 --- a/enterprise/coderd/groups_test.go +++ b/enterprise/coderd/groups_test.go @@ -840,7 +840,7 @@ func TestGroup(t *testing.T) { ctx := testutil.Context(t, testutil.WaitLong) // nolint:gocritic // "This client is operating as the owner user" is fine in this case. - prebuildsUser, err := client.User(ctx, prebuilds.OwnerID.String()) + prebuildsUser, err := client.User(ctx, prebuilds.SystemUserID.String()) require.NoError(t, err) // The 'Everyone' group always has an ID that matches the organization ID. group, err := userAdminClient.Group(ctx, user.OrganizationID)