chore: improve notification template tests' resilience (#14196)

This commit is contained in:
Danny Kopping
2024-08-07 11:33:26 +02:00
committed by GitHub
parent e09ad1ddc1
commit c6076d2d0d
6 changed files with 114 additions and 16 deletions
@@ -0,0 +1,4 @@
UPDATE notification_templates
SET body_template = E'Hi {{.UserName}}\n' ||
E'Your workspace **{{.Labels.name}}** has been updated automatically to the latest template version ({{.Labels.template_version_name}}).'
WHERE id = 'c34a0c09-0704-4cac-bd1c-0c0146811c2b';
@@ -0,0 +1,6 @@
UPDATE notification_templates
SET name = 'Workspace Updated Automatically', -- drive-by fix for capitalization to match other templates
body_template = E'Hi {{.UserName}}\n' ||
E'Your workspace **{{.Labels.name}}** has been updated automatically to the latest template version ({{.Labels.template_version_name}}).\n' ||
E'Reason for update: **{{.Labels.template_version_message}}**' -- include template version message
WHERE id = 'c34a0c09-0704-4cac-bd1c-0c0146811c2b';