func TestAddNoteAlert(t *testing.T) { addnotereq := alerts.AddNoteAlertRequest{} // add alert ten notes for i := 0; i < 10; i++ { addnotereq.AlertId = alertId addnotereq.Note = fmt.Sprintf("Alert note # %d", i) addnoteresp, alertErr := cli.AddNote(addnotereq) if alertErr != nil { t.Errorf(alertErr.Error()) } if addnoteresp.Code >= 400 { t.Errorf(fmt.Sprintf("Add alert note failed with response code: %d", addnoteresp.Code)) } } t.Log("[OK] notes added to alert") }