Fix tests after removing legacy compatibility
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a03f430d0e
commit
cea16606ba
@ -70,14 +70,6 @@ func TestAlertSend(t *testing.T) {
|
|||||||
"Command shell with bad template",
|
"Command shell with bad template",
|
||||||
false,
|
false,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
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",
|
|
||||||
true,
|
|
||||||
},
|
|
||||||
// Test default log alert down
|
// Test default log alert down
|
||||||
{
|
{
|
||||||
*NewLogAlert(),
|
*NewLogAlert(),
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
check_interval: 1
|
check_interval: 1s
|
||||||
|
|
||||||
monitors:
|
monitors:
|
||||||
- name: Command
|
- name: Command
|
||||||
|
Loading…
Reference in New Issue
Block a user