mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(coderd): use service account wording in account notifications (#27536)
This commit is contained in:
@@ -743,6 +743,7 @@ func TestNotifyDeletedUser(t *testing.T) {
|
||||
require.Equal(t, user.Username, notifyEnq.Sent()[1].Labels["deleted_account_name"])
|
||||
require.Equal(t, user.Name, notifyEnq.Sent()[1].Labels["deleted_account_user_name"])
|
||||
require.Equal(t, firstUser.Name, notifyEnq.Sent()[1].Labels["initiator"])
|
||||
require.Equal(t, "user", notifyEnq.Sent()[1].Labels["account_type"])
|
||||
})
|
||||
|
||||
t.Run("UserAdminNotified", func(t *testing.T) {
|
||||
@@ -1131,6 +1132,7 @@ func TestNotifyCreatedUser(t *testing.T) {
|
||||
require.Equal(t, firstUser.UserID, sent[0].UserID)
|
||||
require.Contains(t, sent[0].Targets, user.ID)
|
||||
require.Equal(t, user.Username, sent[0].Labels["created_account_name"])
|
||||
require.Equal(t, "user", sent[0].Labels["account_type"])
|
||||
|
||||
require.IsType(t, map[string]any{}, sent[0].Data["user"])
|
||||
userData := sent[0].Data["user"].(map[string]any)
|
||||
|
||||
Reference in New Issue
Block a user