mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
update submit message
Signed-off-by: David Wertenteil <dwertent@armosec.io>
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user