Skip to content

Commit

Permalink
Fixed unmarshaling yaml to a struct with int pointers (#1595)
Browse files Browse the repository at this point in the history
  • Loading branch information
liranbg committed Mar 26, 2020
1 parent abedb51 commit 3d3f6fd
Show file tree
Hide file tree
Showing 32 changed files with 2,070 additions and 605 deletions.
5 changes: 3 additions & 2 deletions pkg/processor/trigger/http/test/suite/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,13 @@ func (suite *TestSuite) SendRequestVerifyResponse(request *Request) bool {
httpResponse, err := suite.httpClient.Do(httpRequest)

// if we fail to connect, fail
if err != nil && strings.Contains(err.Error(), "EOF") {
if err != nil && (strings.Contains(err.Error(), "EOF") ||
strings.Contains(err.Error(), "connection reset by peer")) {
time.Sleep(500 * time.Millisecond)
return false
}

suite.Require().NoError(err)
suite.Require().NoError(err, "Failed to send request, message: %s", err.Error())

if request.ExpectedResponseStatusCode != nil {
suite.Require().Equal(*request.ExpectedResponseStatusCode,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ metadata:
name: parser
spec:
runtime: python
minReplicas: 1
maxReplicas: 8
handler: parser:handler
build:
commands:
- pip install simplejson

triggers:
api:
kind: http
workerAvailabilityTimeoutMilliseconds: 200
maxWorkers: 1
5 changes: 3 additions & 2 deletions vendor/github.com/ghodss/yaml/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 11 additions & 6 deletions vendor/github.com/ghodss/yaml/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion vendor/github.com/ghodss/yaml/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions vendor/github.com/ghodss/yaml/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions vendor/github.com/ghodss/yaml/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

77 changes: 63 additions & 14 deletions vendor/github.com/ghodss/yaml/yaml.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions vendor/github.com/ghodss/yaml/yaml_go110.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

100 changes: 100 additions & 0 deletions vendor/github.com/ghodss/yaml/yaml_go110_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3d3f6fd

Please sign in to comment.