diff --git a/iapi/notifications_test.go b/iapi/notifications_test.go index 07043fa..7081cbd 100644 --- a/iapi/notifications_test.go +++ b/iapi/notifications_test.go @@ -139,7 +139,7 @@ func TestCreateServiceNotification(t *testing.T) { username := "user" _, _ = Icinga2_Server.CreateUser(username, "user@example.com") - _, _ = 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 { @@ -158,7 +158,7 @@ func TestCreateServiceNotificationAlreadyExists(t *testing.T) { username := "user" _, _ = Icinga2_Server.CreateUser(username, "user@example.com") - _, _ = 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.") { @@ -230,4 +230,4 @@ func TestDeleteNotificationNonAPI(t *testing.T) { if err.Error() != "No objects found." { t.Error(err) } -} \ No newline at end of file +}