Skip to content

Commit

Permalink
Fix integration tests - headers values as strings not arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
dibyom committed Dec 6, 2019
1 parent 960be16 commit 4fe79f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/eventlistener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"fmt"
"net/http"
"os/exec"
"strings"
"testing"
"time"

Expand Down Expand Up @@ -244,8 +245,8 @@ func TestEventListenerCreate(t *testing.T) {
Spec: v1alpha1.PipelineResourceSpec{
Type: "git",
Params: []v1alpha1.ResourceParam{
{Name: "body", Value: `{"one": "zonevalue", "two": {"name": "zfoo", "value": "bar"}}`},
{Name: "header", Value: `{"Accept-Encoding":["gzip"],"Content-Length":["61"],"Content-Type":["application/json"],"User-Agent":["Go-http-client/1.1"]}`},
{Name: "body", Value: strings.Replace(`{"one": "zonevalue", "two": {"name": "zfoo", "value": "bar"}}`, " ", "", -1)},
{Name: "header", Value: `{"Accept-Encoding":"gzip","Content-Length":"61","Content-Type":"application/json","User-Agent":"Go-http-client/1.1"}`},
},
},
}
Expand Down

0 comments on commit 4fe79f8

Please sign in to comment.