Skip to content

Commit e4966e2

Browse files
committed
regenerate golden files
1 parent d98a199 commit e4966e2

21 files changed

+38
-38
lines changed

coderd/notifications/testdata/rendered-templates/webhook/TemplateTemplateDeprecated.json.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
},
3030
"title": "Template 'alpha' has been deprecated",
3131
"title_markdown": "Template 'alpha' has been deprecated",
32-
"body": "Hello Bobby,\n\nThe template alpha has been deprecated with the following message:\n\nThis template has been replaced by beta\n\nNew workspaces may not be created from this template. Existing workspaces will continue to function normally.",
33-
"body_markdown": "Hello Bobby,\n\nThe template **alpha** has been deprecated with the following message:\n\n**This template has been replaced by beta**\n\nNew workspaces may not be created from this template. Existing workspaces will continue to function normally."
32+
"body": "The template alpha has been deprecated with the following message:\n\nThis template has been replaced by beta\n\nNew workspaces may not be created from this template. Existing workspaces will continue to function normally.",
33+
"body_markdown": "The template **alpha** has been deprecated with the following message:\n\n**This template has been replaced by beta**\n\nNew workspaces may not be created from this template. Existing workspaces will continue to function normally."
3434
}

coderd/notifications/testdata/rendered-templates/webhook/TemplateTestNotification.json.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
},
2222
"title": "A test notification",
2323
"title_markdown": "A test notification",
24-
"body": "Hi Bobby,\n\nThis is a test notification.",
25-
"body_markdown": "Hi Bobby,\n\nThis is a test notification."
24+
"body": "This is a test notification.",
25+
"body_markdown": "This is a test notification."
2626
}

coderd/notifications/testdata/rendered-templates/webhook/TemplateUserAccountActivated.json.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
},
2626
"title": "User account \"bobby\" activated",
2727
"title_markdown": "User account \"bobby\" activated",
28-
"body": "Hi Bobby,\n\nUser account bobby has been activated.\n\nThe account belongs to William Tables and it was activated by rob.",
29-
"body_markdown": "Hi Bobby,\n\nUser account **bobby** has been activated.\n\nThe account belongs to **William Tables** and it was activated by **rob**."
28+
"body": "User account bobby has been activated.",
29+
"body_markdown": "User account **bobby** has been activated."
3030
}

coderd/notifications/testdata/rendered-templates/webhook/TemplateUserAccountCreated.json.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
},
2626
"title": "User account \"bobby\" created",
2727
"title_markdown": "User account \"bobby\" created",
28-
"body": "Hi Bobby,\n\nNew user account bobby has been created.\n\nThis new user account was created for William Tables by rob.",
29-
"body_markdown": "Hi Bobby,\n\nNew user account **bobby** has been created.\n\nThis new user account was created for **William Tables** by **rob**."
28+
"body": "New user account bobby has been created.",
29+
"body_markdown": "New user account **bobby** has been created."
3030
}

coderd/notifications/testdata/rendered-templates/webhook/TemplateUserAccountDeleted.json.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
},
2626
"title": "User account \"bobby\" deleted",
2727
"title_markdown": "User account \"bobby\" deleted",
28-
"body": "Hi Bobby,\n\nUser account bobby has been deleted.\n\nThe deleted account belonged to William Tables and was deleted by rob.",
29-
"body_markdown": "Hi Bobby,\n\nUser account **bobby** has been deleted.\n\nThe deleted account belonged to **William Tables** and was deleted by **rob**."
28+
"body": "User account bobby has been deleted.",
29+
"body_markdown": "User account **bobby** has been deleted."
3030
}

coderd/notifications/testdata/rendered-templates/webhook/TemplateUserAccountSuspended.json.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
},
2626
"title": "User account \"bobby\" suspended",
2727
"title_markdown": "User account \"bobby\" suspended",
28-
"body": "Hi Bobby,\n\nUser account bobby has been suspended.\n\nThe account belongs to William Tables and it was suspended by rob.",
29-
"body_markdown": "Hi Bobby,\n\nUser account **bobby** has been suspended.\n\nThe account belongs to **William Tables** and it was suspended by **rob**."
28+
"body": "User account bobby has been suspended.",
29+
"body_markdown": "User account **bobby** has been suspended."
3030
}

coderd/notifications/testdata/rendered-templates/webhook/TemplateUserRequestedOneTimePasscode.json.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
},
2424
"title": "Reset your password for Coder",
2525
"title_markdown": "Reset your password for Coder",
26-
"body": "Hi Bobby,\n\nUse the link below to reset your password.\n\nIf you did not make this request, you can ignore this message.",
27-
"body_markdown": "Hi Bobby,\n\nUse the link below to reset your password.\n\nIf you did not make this request, you can ignore this message."
26+
"body": "A request to reset the password for your Coder account has been made. Your one-time passcode is:\n\n00000000-0000-0000-0000-000000000000\n\nIf you did not request to reset your password, you can ignore this message.",
27+
"body_markdown": "A request to reset the password for your Coder account has been made. Your one-time passcode is:\n\n**00000000-0000-0000-0000-000000000000**\n\nIf you did not request to reset your password, you can ignore this message."
2828
}

coderd/notifications/testdata/rendered-templates/webhook/TemplateWorkspaceAutoUpdated.json.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
},
2626
"title": "Workspace \"bobby-workspace\" updated automatically",
2727
"title_markdown": "Workspace \"bobby-workspace\" updated automatically",
28-
"body": "Hi Bobby,\n\nYour workspace bobby-workspace has been updated automatically to the latest template version (1.0).\n\nReason for update: template now includes catnip.",
29-
"body_markdown": "Hi Bobby,\n\nYour workspace **bobby-workspace** has been updated automatically to the latest template version (1.0).\n\nReason for update: **template now includes catnip**."
28+
"body": "Your workspace bobby-workspace has been updated automatically to the latest template version (1.0).",
29+
"body_markdown": "Your workspace **bobby-workspace** has been updated automatically to the latest template version (1.0)."
3030
}

coderd/notifications/testdata/rendered-templates/webhook/TemplateWorkspaceAutobuildFailed.json.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
},
2525
"title": "Workspace \"bobby-workspace\" autobuild failed",
2626
"title_markdown": "Workspace \"bobby-workspace\" autobuild failed",
27-
"body": "Hi Bobby,\n\nAutomatic build of your workspace bobby-workspace failed.\n\nThe specified reason was \"autostart\".",
28-
"body_markdown": "Hi Bobby,\n\nAutomatic build of your workspace **bobby-workspace** failed.\n\nThe specified reason was \"**autostart**\"."
27+
"body": "Automatic build of your workspace bobby-workspace failed.\nThe specified reason was \"autostart\".",
28+
"body_markdown": "Automatic build of your workspace **bobby-workspace** failed.\nThe specified reason was \"**autostart**\"."
2929
}

coderd/notifications/testdata/rendered-templates/webhook/TemplateWorkspaceCreated.json.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
},
2626
"title": "Workspace 'bobby-workspace' has been created",
2727
"title_markdown": "Workspace 'bobby-workspace' has been created",
28-
"body": "Hello Bobby,\n\nThe workspace bobby-workspace has been created from the template bobby-template using version alpha.",
29-
"body_markdown": "Hello Bobby,\n\nThe workspace **bobby-workspace** has been created from the template **bobby-template** using version **alpha**."
28+
"body": "The workspace bobby-workspace has been created from the template bobby-template using version alpha.",
29+
"body_markdown": "The workspace **bobby-workspace** has been created from the template **bobby-template** using version **alpha**."
3030
}

coderd/notifications/testdata/rendered-templates/webhook/TemplateWorkspaceDeleted.json.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
},
3030
"title": "Workspace \"bobby-workspace\" deleted",
3131
"title_markdown": "Workspace \"bobby-workspace\" deleted",
32-
"body": "Hi Bobby,\n\nYour workspace bobby-workspace was deleted.\n\nThe specified reason was \"autodeleted due to dormancy (autobuild)\".",
33-
"body_markdown": "Hi Bobby,\n\nYour workspace **bobby-workspace** was deleted.\n\nThe specified reason was \"**autodeleted due to dormancy (autobuild)**\"."
32+
"body": "Your workspace bobby-workspace was deleted.\nThe specified reason was \"autodeleted due to dormancy (autobuild)\".",
33+
"body_markdown": "Your workspace **bobby-workspace** was deleted.\nThe specified reason was \"**autodeleted due to dormancy (autobuild)**\"."
3434
}

coderd/notifications/testdata/rendered-templates/webhook/TemplateWorkspaceDeleted_CustomAppearance.json.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
},
3030
"title": "Workspace \"bobby-workspace\" deleted",
3131
"title_markdown": "Workspace \"bobby-workspace\" deleted",
32-
"body": "Hi Bobby,\n\nYour workspace bobby-workspace was deleted.\n\nThe specified reason was \"autodeleted due to dormancy (autobuild)\".",
33-
"body_markdown": "Hi Bobby,\n\nYour workspace **bobby-workspace** was deleted.\n\nThe specified reason was \"**autodeleted due to dormancy (autobuild)**\"."
32+
"body": "Your workspace bobby-workspace was deleted.\nThe specified reason was \"autodeleted due to dormancy (autobuild)\".",
33+
"body_markdown": "Your workspace **bobby-workspace** was deleted.\nThe specified reason was \"**autodeleted due to dormancy (autobuild)**\"."
3434
}

coderd/notifications/testdata/rendered-templates/webhook/TemplateWorkspaceManualBuildFailed.json.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
},
2929
"title": "Workspace \"bobby-workspace\" manual build failed",
3030
"title_markdown": "Workspace \"bobby-workspace\" manual build failed",
31-
"body": "Hi Bobby,\n\nA manual build of the workspace bobby-workspace using the template bobby-template failed (version: bobby-template-version).\n\nThe workspace build was initiated by joe.",
32-
"body_markdown": "Hi Bobby,\n\nA manual build of the workspace **bobby-workspace** using the template **bobby-template** failed (version: **bobby-template-version**).\n\nThe workspace build was initiated by **joe**."
31+
"body": "A manual build of the workspace bobby-workspace using the template bobby-template failed (version: bobby-template-version).\nThe workspace build was initiated by joe.",
32+
"body_markdown": "A manual build of the workspace **bobby-workspace** using the template **bobby-template** failed (version: **bobby-template-version**).\nThe workspace build was initiated by **joe**."
3333
}

coderd/notifications/testdata/rendered-templates/webhook/TemplateWorkspaceManuallyUpdated.json.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@
3131
},
3232
"title": "Workspace 'bobby-workspace' has been manually updated",
3333
"title_markdown": "Workspace 'bobby-workspace' has been manually updated",
34-
"body": "Hello Bobby,\n\nA new workspace build has been manually created for your workspace bobby-workspace by bobby to update it to version alpha of template bobby-template.",
35-
"body_markdown": "Hello Bobby,\n\nA new workspace build has been manually created for your workspace **bobby-workspace** by **bobby** to update it to version **alpha** of template **bobby-template**."
34+
"body": "A new workspace build has been manually created for your workspace bobby-workspace by bobby to update it to version alpha of template bobby-template.",
35+
"body_markdown": "A new workspace build has been manually created for your workspace **bobby-workspace** by **bobby** to update it to version **alpha** of template **bobby-template**."
3636
}

coderd/notifications/testdata/rendered-templates/webhook/TemplateWorkspaceOutOfDisk.json.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
},
3131
"title": "Your workspace \"bobby-workspace\" is low on volume space",
3232
"title_markdown": "Your workspace \"bobby-workspace\" is low on volume space",
33-
"body": "Hi Bobby,\n\nVolume /home/coder is over 90% full in workspace bobby-workspace.",
34-
"body_markdown": "Hi Bobby,\n\nVolume **`/home/coder`** is over 90% full in workspace **bobby-workspace**."
33+
"body": "Volume /home/coder is over 90% full in workspace bobby-workspace.",
34+
"body_markdown": "Volume **`/home/coder`** is over 90% full in workspace **bobby-workspace**."
3535
}

coderd/notifications/testdata/rendered-templates/webhook/TemplateWorkspaceOutOfDisk_MultipleVolumes.json.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@
3838
},
3939
"title": "Your workspace \"bobby-workspace\" is low on volume space",
4040
"title_markdown": "Your workspace \"bobby-workspace\" is low on volume space",
41-
"body": "Hi Bobby,\n\nThe following volumes are nearly full in workspace bobby-workspace\n\n/home/coder is over 90% full\n/dev/coder is over 80% full\n/etc/coder is over 95% full",
42-
"body_markdown": "Hi Bobby,\n\nThe following volumes are nearly full in workspace **bobby-workspace**\n\n- **`/home/coder`** is over 90% full\n- **`/dev/coder`** is over 80% full\n- **`/etc/coder`** is over 95% full\n"
41+
"body": "The following volumes are nearly full in workspace bobby-workspace\n\n/home/coder is over 90% full\n/dev/coder is over 80% full\n/etc/coder is over 95% full",
42+
"body_markdown": "The following volumes are nearly full in workspace **bobby-workspace**\n\n- **`/home/coder`** is over 90% full\n- **`/dev/coder`** is over 80% full\n- **`/etc/coder`** is over 95% full\n"
4343
}

coderd/notifications/testdata/rendered-templates/webhook/TemplateWorkspaceOutOfMemory.json.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
},
2525
"title": "Your workspace \"bobby-workspace\" is low on memory",
2626
"title_markdown": "Your workspace \"bobby-workspace\" is low on memory",
27-
"body": "Hi Bobby,\n\nYour workspace bobby-workspace has reached the memory usage threshold set at 90%.",
28-
"body_markdown": "Hi Bobby,\n\nYour workspace **bobby-workspace** has reached the memory usage threshold set at **90%**."
27+
"body": "Your workspace bobby-workspace has reached the memory usage threshold set at 90%.",
28+
"body_markdown": "Your workspace **bobby-workspace** has reached the memory usage threshold set at **90%**."
2929
}

coderd/notifications/testdata/rendered-templates/webhook/TemplateYourAccountActivated.json.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
},
2525
"title": "Your account \"bobby\" has been activated",
2626
"title_markdown": "Your account \"bobby\" has been activated",
27-
"body": "Hi Bobby,\n\nYour account bobby has been activated by rob.",
28-
"body_markdown": "Hi Bobby,\n\nYour account **bobby** has been activated by **rob**."
27+
"body": "Your account bobby has been activated.",
28+
"body_markdown": "Your account **bobby** has been activated."
2929
}

coderd/notifications/testdata/rendered-templates/webhook/TemplateYourAccountSuspended.json.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
},
2020
"title": "Your account \"bobby\" has been suspended",
2121
"title_markdown": "Your account \"bobby\" has been suspended",
22-
"body": "Hi Bobby,\n\nYour account bobby has been suspended by rob.",
23-
"body_markdown": "Hi Bobby,\n\nYour account **bobby** has been suspended by **rob**."
22+
"body": "Your account bobby has been suspended.",
23+
"body_markdown": "Your account **bobby** has been suspended."
2424
}

0 commit comments

Comments
 (0)