Skip to content

Commit

Permalink
fixing payload troubles after details removal
Browse files Browse the repository at this point in the history
  • Loading branch information
sebito91 committed Feb 28, 2018
1 parent 5dfcc48 commit cc67ff5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"encoding/json"
"fmt"
"html"
"io"
"io/ioutil"
"math/rand"
Expand Down Expand Up @@ -8194,7 +8193,6 @@ func TestServer_ListServiceTests(t *testing.T) {
"incident-key": "testIncidentKey",
"description": "test pagerduty2 message",
"level": "CRITICAL",
"details": html.EscapeString(`{"Test": "test_value"}`),
"event_data": map[string]interface{}{
"Fields": map[string]interface{}{},
"Result": map[string]interface{}{
Expand Down Expand Up @@ -9129,6 +9127,9 @@ func TestServer_AlertHandlers(t *testing.T) {
},
}}

fmt.Printf("DEBUG -- got: %v\n", got[0].PostData.Payload)
fmt.Printf("DEBUG -- exp: %v\n", exp[0].PostData.Payload)

if !reflect.DeepEqual(exp, got) {
return fmt.Errorf("unexpected pagerduty2 request:\nexp\n%+v\ngot\n%+v\n", exp, got)
}
Expand Down

0 comments on commit cc67ff5

Please sign in to comment.