Skip to content

Commit

Permalink
Updated notifications_test.go account for new parameter in CreateService
Browse files Browse the repository at this point in the history
  • Loading branch information
lrsmith committed Apr 8, 2018
1 parent 25ae73a commit 7c67134
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iapi/notifications_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func TestCreateServiceNotification(t *testing.T) {
username := "user"

_, _ = Icinga2_Server.CreateUser(username, "[email protected]")
_, _ = Icinga2_Server.CreateService(servicename, hostname, check_command)
_, _ = Icinga2_Server.CreateService(servicename, hostname, check_command,nil)
_, err := Icinga2_Server.CreateNotification(notificationname, hostname, command, servicename, interval, []string{username}, nil, nil)

if err != nil {
Expand All @@ -158,7 +158,7 @@ func TestCreateServiceNotificationAlreadyExists(t *testing.T) {
username := "user"

_, _ = Icinga2_Server.CreateUser(username, "[email protected]")
_, _ = Icinga2_Server.CreateService(servicename, hostname, check_command)
_, _ = Icinga2_Server.CreateService(servicename, hostname, check_command, nil)
_, err := Icinga2_Server.CreateNotification(notificationname, hostname, command, servicename, interval, []string{username}, nil, nil)

if !strings.HasSuffix(err.Error(), " already exists.") {
Expand Down Expand Up @@ -230,4 +230,4 @@ func TestDeleteNotificationNonAPI(t *testing.T) {
if err.Error() != "No objects found." {
t.Error(err)
}
}
}

0 comments on commit 7c67134

Please sign in to comment.