@@ -17,7 +17,7 @@ import (
1717
1818func TestCheckFlapping (t * testing.T ) {
1919 defer setup ()()
20- c , err := rule .NewConf ("" , conf.EnabledBackends {}, `
20+ c , err := rule .NewConf ("" , conf.EnabledBackends {}, nil , `
2121 template t {
2222 subject = 1
2323 }
@@ -106,7 +106,7 @@ func TestCheckSilence(t *testing.T) {
106106 if err != nil {
107107 t .Fatal (err )
108108 }
109- c , err := rule .NewConf ("" , conf.EnabledBackends {}, fmt .Sprintf (`
109+ c , err := rule .NewConf ("" , conf.EnabledBackends {}, nil , fmt .Sprintf (`
110110 template t {
111111 subject = "test"
112112 body = "test"
@@ -143,7 +143,7 @@ func TestCheckSilence(t *testing.T) {
143143
144144func TestIncidentIds (t * testing.T ) {
145145 defer setup ()()
146- c , err := rule .NewConf ("" , conf.EnabledBackends {}, `
146+ c , err := rule .NewConf ("" , conf.EnabledBackends {}, nil , `
147147 alert a {
148148 crit = 1
149149 }
@@ -201,7 +201,7 @@ func TestCheckNotify(t *testing.T) {
201201 if err != nil {
202202 t .Fatal (err )
203203 }
204- c , err := rule .NewConf ("" , conf.EnabledBackends {}, fmt .Sprintf (`
204+ c , err := rule .NewConf ("" , conf.EnabledBackends {}, nil , fmt .Sprintf (`
205205 template t {
206206 subject = {{.Last.Status}}
207207 }
@@ -245,7 +245,7 @@ func TestCheckNotifyUnknown(t *testing.T) {
245245 if err != nil {
246246 t .Fatal (err )
247247 }
248- c , err := rule .NewConf ("" , conf.EnabledBackends {}, fmt .Sprintf (`
248+ c , err := rule .NewConf ("" , conf.EnabledBackends {}, nil , fmt .Sprintf (`
249249 template t {
250250 subject = {{.Name}}: {{.Group | len}} unknown alerts
251251 }
@@ -308,7 +308,7 @@ func TestCheckNotifyUnknownDefault(t *testing.T) {
308308 if err != nil {
309309 t .Fatal (err )
310310 }
311- c , err := rule .NewConf ("" , conf.EnabledBackends {}, fmt .Sprintf (`
311+ c , err := rule .NewConf ("" , conf.EnabledBackends {}, nil , fmt .Sprintf (`
312312 template t {
313313 subject = template
314314 }
@@ -369,7 +369,7 @@ func TestCheckNotifyLog(t *testing.T) {
369369 if err != nil {
370370 t .Fatal (err )
371371 }
372- c , err := rule .NewConf ("" , conf.EnabledBackends {}, fmt .Sprintf (`
372+ c , err := rule .NewConf ("" , conf.EnabledBackends {}, nil , fmt .Sprintf (`
373373 template t {
374374 subject = {{.Alert.Name}}
375375 }
0 commit comments