fix(coderd): use service account wording in account notifications (#27536)

This commit is contained in:
Atif Ali
2026-08-11 13:16:25 +00:00
committed by GitHub
parent 75e0790cd7
commit d7953bd046
23 changed files with 881 additions and 13 deletions
+2
View File
@@ -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)