mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-21 12:28:46 +00:00
chore: Service Account Naming Consistency (#11557)
# Which Problems Are Solved Inconsistent naming of service account, found in the following variations: - Machine User - machine user - Service User - Machine Account - Technical Account - User: Type Machine # How the Problems Are Solved Attentive search and replace. Localizations have been translated using Copilot # Additional Changes Some unused methods have been removed from the Go code. # Additional Context - Closes #11285
This commit is contained in:
@@ -398,7 +398,7 @@ func TestServer_ListUsers(t *testing.T) {
|
||||
wantErr bool
|
||||
}{
|
||||
{
|
||||
name: "list user by id, no permission machine user",
|
||||
name: "list user by id, no permission service account",
|
||||
args: args{
|
||||
InstancePermissionV2.WithAuthorizationToken(OrgCTX, integration.UserTypeNoPermission),
|
||||
&user.ListUsersRequest{},
|
||||
|
||||
@@ -3358,7 +3358,7 @@ func TestServer_CreateUser(t *testing.T) {
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "machine user",
|
||||
name: "service account",
|
||||
testCase: func(runId string) testCase {
|
||||
username := fmt.Sprintf("donald.duck+%s", runId)
|
||||
return testCase{
|
||||
@@ -3577,7 +3577,7 @@ func TestServer_CreateUser_And_Compare(t *testing.T) {
|
||||
}
|
||||
},
|
||||
}, {
|
||||
name: "machine username given",
|
||||
name: "service accountname given",
|
||||
testCase: func(runId string) testCase {
|
||||
username := fmt.Sprintf("donald.duck+%s", runId)
|
||||
return testCase{
|
||||
@@ -3599,7 +3599,7 @@ func TestServer_CreateUser_And_Compare(t *testing.T) {
|
||||
}
|
||||
},
|
||||
}, {
|
||||
name: "machine username default to generated id",
|
||||
name: "service accountname default to generated id",
|
||||
testCase: func(runId string) testCase {
|
||||
return testCase{
|
||||
args: args{
|
||||
@@ -3619,7 +3619,7 @@ func TestServer_CreateUser_And_Compare(t *testing.T) {
|
||||
}
|
||||
},
|
||||
}, {
|
||||
name: "machine username default to given id",
|
||||
name: "service accountname default to given id",
|
||||
testCase: func(runId string) testCase {
|
||||
return testCase{
|
||||
args: args{
|
||||
@@ -3795,7 +3795,7 @@ func TestServer_CreateUser_Permission(t *testing.T) {
|
||||
wantErr: true,
|
||||
},
|
||||
{
|
||||
name: "machine user, error",
|
||||
name: "service account, error",
|
||||
args: args{
|
||||
UserCTX,
|
||||
&user.CreateUserRequest{
|
||||
@@ -4150,7 +4150,7 @@ func TestServer_UpdateUserTypeMachine(t *testing.T) {
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "update machine user with human fields, error",
|
||||
name: "update service account with human fields, error",
|
||||
testCase: func(runId, userId string) testCase {
|
||||
return testCase{
|
||||
args: args{
|
||||
@@ -4280,7 +4280,7 @@ func TestServer_UpdateUser_And_Compare(t *testing.T) {
|
||||
}
|
||||
},
|
||||
}, {
|
||||
name: "machine username",
|
||||
name: "service accountname",
|
||||
testCase: func(runId string) testCase {
|
||||
username := fmt.Sprintf("donald.duck+%s", runId)
|
||||
return testCase{
|
||||
@@ -4493,7 +4493,7 @@ func TestServer_UpdateUser_Permission(t *testing.T) {
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "machine user, error",
|
||||
name: "service account, error",
|
||||
testCase: func() testCase {
|
||||
return testCase{
|
||||
args: args{
|
||||
|
||||
Reference in New Issue
Block a user