update submit message

Signed-off-by: David Wertenteil <dwertent@armosec.io>
This commit is contained in:
David Wertenteil
2023-07-05 10:38:59 +03:00
parent aa0fe21a2e
commit 780be45392
2 changed files with 4 additions and 4 deletions
@@ -250,10 +250,10 @@ func (report *ReportEventReceiver) sendReport(host string, postureReport *report
func (report *ReportEventReceiver) generateMessage() {
report.message = ""
sep := "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
sep := "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
report.message = sep
report.message += " << WOW! Now you can see the scan results on the web >>\n\n"
report.message += fmt.Sprintf(" %s\n", report.GetURL())
report.message += "Now, take your scan results to the next level with actionable insights on ARMO Platform.\n\n"
report.message += fmt.Sprintf("Sign up for free here - %s\n", report.GetURL())
report.message += sep
}
@@ -337,7 +337,7 @@ func TestDisplayReportURL(t *testing.T) {
require.NoError(t, err)
require.NotEmpty(t, buf)
assert.Contains(t, string(buf), "WOW!")
assert.Contains(t, string(buf), "Now")
assert.Contains(t, string(buf), "https://cloud.armosec.io/account/sign-up")
t.Log(string(buf))