Try to allow parsing of Minitor-py templates

This will make transition easier for an interim period. Will remove at
version 1.0
This commit is contained in:
Ian Fijolek
2020-02-16 18:39:55 -08:00
committed by Ian Fijolek
parent 0a0f6fe7c9
commit 5ed691fdf3
2 changed files with 21 additions and 1 deletions
+7
View File
@@ -63,6 +63,13 @@ func TestAlertSend(t *testing.T) {
true,
"Command shell with bad template",
},
{
Alert{Command: CommandOrShell{ShellCommand: "echo {alert_message}"}},
AlertNotice{MonitorName: "test", FailureCount: 1},
"test check has failed 1 times\n",
false,
"Command shell with legacy template",
},
}
for _, c := range cases {