Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into SANDBOX-504-host
Browse files Browse the repository at this point in the history
  • Loading branch information
sbryzak committed Feb 7, 2024
2 parents 96660f8 + b52c7c1 commit 69b2bea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>
Notice: Your running application in namespace has been idled
Notice: Your running workload has been idled
</title>
<style>
a:hover {
Expand Down Expand Up @@ -41,13 +41,12 @@
>

<p>
You are receiving this email because one or more of your applications in the Developer Sandbox for
You are receiving this email because one or more of your workloads in the Developer Sandbox for
Red Hat OpenShift has been running for 12 hours.
</p>

<p>
In accordance with the usage terms of Developer Sandbox, we have reduced the number of instances of your
application {{.AppType}} {{.AppName}} to zero (0). You can restart your application(s) by increasing the number of instances from the
In accordance with the usage terms of Developer Sandbox, your workload {{.AppType}} {{.AppName}} has been scaled down. You can restart your workload(s) or scale up the number of instances from the
Developer Sandbox User Interface.
</p>

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Notice: Your running application in namespace {{.Namespace}} has been idled
Notice: Your running workload in namespace {{.Namespace}} has been idled
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ func TestGetNotificationTemplate(t *testing.T) {
// then
require.NoError(t, err)
require.NotNil(t, template)
assert.Equal(t, "Notice: Your running application in namespace {{.Namespace}} has been idled", template.Subject)
assert.Contains(t, template.Content, "In accordance with the usage terms of Developer Sandbox, we have reduced the number of instances of your\n application {{.AppType}} {{.AppName}} to zero (0).")
assert.Equal(t, "Notice: Your running workload in namespace {{.Namespace}} has been idled", template.Subject)
assert.Contains(t, template.Content, "In accordance with the usage terms of Developer Sandbox, your workload {{.AppType}} {{.AppName}} has been scaled down.")

})
})
Expand Down

0 comments on commit 69b2bea

Please sign in to comment.