Skip to content

Commit

Permalink
testing out a theory for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sebito91 committed Feb 7, 2018
1 parent beea7ae commit 5e11c06
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
9 changes: 7 additions & 2 deletions server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8194,8 +8194,13 @@ func TestServer_ListServiceTests(t *testing.T) {
"description": "test pagerduty2 message",
"level": "CRITICAL",
"details": "",
"event_data": alert.EventData{},
"timestamp": "2014-11-12T11:45:26.371Z",
"event_data": alert.EventData{
Name: "testPagerDuty2",
Tags: make(map[string]string),
Fields: make(map[string]interface{}),
Result: models.Result{},
},
"timestamp": "2014-11-12T11:45:26.371Z",
},
},
{
Expand Down
8 changes: 7 additions & 1 deletion services/pagerduty2/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (

"github.com/influxdata/kapacitor/alert"
"github.com/influxdata/kapacitor/keyvalue"
"github.com/influxdata/kapacitor/models"
)

// This example shows how to send a trigger event without a dedup_key.
Expand Down Expand Up @@ -172,7 +173,12 @@ func (s *Service) TestOptions() interface{} {
Description: "test pagerduty2 message",
Level: alert.Critical,
Timestamp: t,
Data: alert.EventData{},
Data: alert.EventData{
Name: "testPagerDuty2",
Tags: make(map[string]string),
Fields: make(map[string]interface{}),
Result: models.Result{},
},
}
}

Expand Down

0 comments on commit 5e11c06

Please sign in to comment.