@@ -19,7 +19,7 @@ import (
19
19
"testing"
20
20
"time"
21
21
22
- "github.com/andygrunwald/go-jira"
22
+ jira "github.com/andygrunwald/go-jira"
23
23
24
24
"github.com/trivago/tgo/tcontainer"
25
25
@@ -216,9 +216,9 @@ func TestNotify_JIRAInteraction(t *testing.T) {
216
216
initJira : func (t * testing.T ) * fakeJira { return newTestFakeJira () },
217
217
inputAlert : & alertmanager.Data {
218
218
Alerts : alertmanager.Alerts {
219
- {Status : alertmanager .AlertFiring },
220
- {Status : "not firing" },
221
- {Status : alertmanager .AlertFiring },
219
+ alertmanager. Alert {Status : alertmanager .AlertFiring },
220
+ alertmanager. Alert {Status : "not firing" },
221
+ alertmanager. Alert {Status : alertmanager .AlertFiring },
222
222
},
223
223
Status : alertmanager .AlertFiring ,
224
224
GroupLabels : alertmanager.KV {"a" : "b" , "c" : "d" },
@@ -259,8 +259,8 @@ func TestNotify_JIRAInteraction(t *testing.T) {
259
259
},
260
260
inputAlert : & alertmanager.Data {
261
261
Alerts : alertmanager.Alerts {
262
- {Status : "not firing" },
263
- {Status : alertmanager .AlertFiring }, // Only one firing now.
262
+ alertmanager. Alert {Status : "not firing" },
263
+ alertmanager. Alert {Status : alertmanager .AlertFiring }, // Only one firing now.
264
264
},
265
265
Status : alertmanager .AlertFiring ,
266
266
GroupLabels : alertmanager.KV {"a" : "b" , "c" : "d" },
@@ -302,8 +302,8 @@ func TestNotify_JIRAInteraction(t *testing.T) {
302
302
},
303
303
inputAlert : & alertmanager.Data {
304
304
Alerts : alertmanager.Alerts {
305
- {Status : "not firing" },
306
- {Status : alertmanager .AlertFiring }, // Only one firing now.
305
+ alertmanager. Alert {Status : "not firing" },
306
+ alertmanager. Alert {Status : alertmanager .AlertFiring }, // Only one firing now.
307
307
},
308
308
Status : alertmanager .AlertFiring ,
309
309
GroupLabels : alertmanager.KV {"a" : "b" , "c" : "d" },
@@ -354,8 +354,8 @@ func TestNotify_JIRAInteraction(t *testing.T) {
354
354
},
355
355
inputAlert : & alertmanager.Data {
356
356
Alerts : alertmanager.Alerts {
357
- {Status : "not firing" },
358
- {Status : alertmanager .AlertFiring }, // Only one firing now.
357
+ alertmanager. Alert {Status : "not firing" },
358
+ alertmanager. Alert {Status : alertmanager .AlertFiring }, // Only one firing now.
359
359
},
360
360
Status : alertmanager .AlertFiring ,
361
361
GroupLabels : alertmanager.KV {"a" : "b" , "c" : "d" },
@@ -409,8 +409,8 @@ func TestNotify_JIRAInteraction(t *testing.T) {
409
409
},
410
410
inputAlert : & alertmanager.Data {
411
411
Alerts : alertmanager.Alerts {
412
- {Status : "not firing" },
413
- {Status : alertmanager .AlertFiring }, // Only one firing now.
412
+ alertmanager. Alert {Status : "not firing" },
413
+ alertmanager. Alert {Status : alertmanager .AlertFiring }, // Only one firing now.
414
414
},
415
415
Status : alertmanager .AlertFiring ,
416
416
GroupLabels : alertmanager.KV {"a" : "b" , "c" : "d" },
@@ -464,8 +464,8 @@ func TestNotify_JIRAInteraction(t *testing.T) {
464
464
},
465
465
inputAlert : & alertmanager.Data {
466
466
Alerts : alertmanager.Alerts {
467
- {Status : "not firing" },
468
- {Status : alertmanager .AlertFiring }, // Only one firing now.
467
+ alertmanager. Alert {Status : "not firing" },
468
+ alertmanager. Alert {Status : alertmanager .AlertFiring }, // Only one firing now.
469
469
},
470
470
Status : alertmanager .AlertFiring ,
471
471
GroupLabels : alertmanager.KV {"a" : "b" , "c" : "d" },
@@ -510,7 +510,7 @@ func TestNotify_JIRAInteraction(t *testing.T) {
510
510
inputConfig : testReceiverConfigAutoResolve (),
511
511
inputAlert : & alertmanager.Data {
512
512
Alerts : alertmanager.Alerts {
513
- {Status : "resolved" },
513
+ alertmanager. Alert {Status : "resolved" },
514
514
},
515
515
Status : alertmanager .AlertResolved ,
516
516
GroupLabels : alertmanager.KV {"a" : "b" , "c" : "d" },
@@ -554,9 +554,9 @@ func TestNotify_JIRAInteraction(t *testing.T) {
554
554
initJira : func (t * testing.T ) * fakeJira { return newTestFakeJira () },
555
555
inputAlert : & alertmanager.Data {
556
556
Alerts : alertmanager.Alerts {
557
- {Status : alertmanager .AlertFiring },
558
- {Status : "not firing" },
559
- {Status : alertmanager .AlertFiring },
557
+ alertmanager. Alert {Status : alertmanager .AlertFiring },
558
+ alertmanager. Alert {Status : "not firing" },
559
+ alertmanager. Alert {Status : alertmanager .AlertFiring },
560
560
},
561
561
Status : alertmanager .AlertFiring ,
562
562
GroupLabels : alertmanager.KV {"a" : "b" , "c" : "d" },
0 commit comments