From 2d3cca60c37f3352ace29efedc83fa581dd1de33 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 28 Sep 2023 17:06:50 +0000 Subject: [PATCH] chore(deps): bump github.com/onsi/gomega in /syslog-forwarder Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.27.10 to 1.28.0. - [Release notes](https://github.com/onsi/gomega/releases) - [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/gomega/compare/v1.27.10...v1.28.0) --- updated-dependencies: - dependency-name: github.com/onsi/gomega dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- syslog-forwarder/go.mod | 2 +- syslog-forwarder/go.sum | 4 ++-- .../vendor/github.com/onsi/gomega/CHANGELOG.md | 15 +++++++++++++++ .../vendor/github.com/onsi/gomega/gomega_dsl.go | 2 +- .../vendor/github.com/onsi/gomega/matchers.go | 2 +- .../gomega/matchers/have_http_body_matcher.go | 9 ++++++--- syslog-forwarder/vendor/modules.txt | 2 +- 7 files changed, 27 insertions(+), 9 deletions(-) diff --git a/syslog-forwarder/go.mod b/syslog-forwarder/go.mod index 913fd55f..69e37f1c 100644 --- a/syslog-forwarder/go.mod +++ b/syslog-forwarder/go.mod @@ -11,7 +11,7 @@ require ( code.cloudfoundry.org/go-stream-aggregator v0.0.0-20180315223236-6c519ef42085 code.cloudfoundry.org/rfc5424 v0.0.0-20180905210152-236a6d29298a github.com/onsi/ginkgo v1.16.5 - github.com/onsi/gomega v1.27.10 + github.com/onsi/gomega v1.28.0 golang.org/x/net v0.15.0 google.golang.org/protobuf v1.31.0 ) diff --git a/syslog-forwarder/go.sum b/syslog-forwarder/go.sum index 6d4f0269..61a75c7c 100644 --- a/syslog-forwarder/go.sum +++ b/syslog-forwarder/go.sum @@ -133,8 +133,8 @@ github.com/onsi/ginkgo/v2 v2.12.0 h1:UIVDowFPwpg6yMUpPjGkYvf06K3RAiJXUhCxEwQVHRI github.com/onsi/ginkgo/v2 v2.12.0/go.mod h1:ZNEzXISYlqpb8S36iN71ifqLi3vVD1rVJGvWRCJOUpQ= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= -github.com/onsi/gomega v1.27.10 h1:naR28SdDFlqrG6kScpT8VWpu1xWY5nJRCF3XaYyBjhI= -github.com/onsi/gomega v1.27.10/go.mod h1:RsS8tutOdbdgzbPtzzATp12yT7kM5I5aElG3evPbQ0M= +github.com/onsi/gomega v1.28.0 h1:i2rg/p9n/UqIDAMFUJ6qIUUMcsqOuUHgbpbu235Vr1c= +github.com/onsi/gomega v1.28.0/go.mod h1:A1H2JE76sI14WIP57LMKj7FVfCHx3g3BcZVjJG8bjX8= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= diff --git a/syslog-forwarder/vendor/github.com/onsi/gomega/CHANGELOG.md b/syslog-forwarder/vendor/github.com/onsi/gomega/CHANGELOG.md index 1526497b..fbb12a15 100644 --- a/syslog-forwarder/vendor/github.com/onsi/gomega/CHANGELOG.md +++ b/syslog-forwarder/vendor/github.com/onsi/gomega/CHANGELOG.md @@ -1,3 +1,18 @@ +## 1.28.0 + +### Features +- Add VerifyHost handler to ghttp (#698) [0b03b36] + +### Fixes +- Read Body for Newer Responses in HaveHTTPBodyMatcher (#686) [18d6673] + +### Maintenance +- Bump github.com/onsi/ginkgo/v2 from 2.11.0 to 2.12.0 (#693) [55a33f3] +- Typo in matchers.go (#691) [de68e8f] +- Bump commonmarker from 0.23.9 to 0.23.10 in /docs (#690) [ab17f5e] +- chore: update test matrix for Go 1.21 (#689) [5069017] +- Bump golang.org/x/net from 0.12.0 to 0.14.0 (#688) [babe25f] + ## 1.27.10 ### Fixes diff --git a/syslog-forwarder/vendor/github.com/onsi/gomega/gomega_dsl.go b/syslog-forwarder/vendor/github.com/onsi/gomega/gomega_dsl.go index 1fd1803a..675a1784 100644 --- a/syslog-forwarder/vendor/github.com/onsi/gomega/gomega_dsl.go +++ b/syslog-forwarder/vendor/github.com/onsi/gomega/gomega_dsl.go @@ -22,7 +22,7 @@ import ( "github.com/onsi/gomega/types" ) -const GOMEGA_VERSION = "1.27.10" +const GOMEGA_VERSION = "1.28.0" const nilGomegaPanic = `You are trying to make an assertion, but haven't registered Gomega's fail handler. If you're using Ginkgo then you probably forgot to put your assertion in an It(). diff --git a/syslog-forwarder/vendor/github.com/onsi/gomega/matchers.go b/syslog-forwarder/vendor/github.com/onsi/gomega/matchers.go index bdaf62b5..4c13ad0a 100644 --- a/syslog-forwarder/vendor/github.com/onsi/gomega/matchers.go +++ b/syslog-forwarder/vendor/github.com/onsi/gomega/matchers.go @@ -94,7 +94,7 @@ func Succeed() types.GomegaMatcher { // // Expect(err).Should(MatchError("an error")) //asserts that err.Error() == "an error" // Expect(err).Should(MatchError(SomeError)) //asserts that err == SomeError (via reflect.DeepEqual) -// Expect(err).Should(MatchError(ContainSubstring("sprocket not found"))) // asserts that edrr.Error() contains substring "sprocket not found" +// Expect(err).Should(MatchError(ContainSubstring("sprocket not found"))) // asserts that err.Error() contains substring "sprocket not found" // // It is an error for err to be nil or an object that does not implement the // Error interface diff --git a/syslog-forwarder/vendor/github.com/onsi/gomega/matchers/have_http_body_matcher.go b/syslog-forwarder/vendor/github.com/onsi/gomega/matchers/have_http_body_matcher.go index 6a3dcdc3..d14d9e5f 100644 --- a/syslog-forwarder/vendor/github.com/onsi/gomega/matchers/have_http_body_matcher.go +++ b/syslog-forwarder/vendor/github.com/onsi/gomega/matchers/have_http_body_matcher.go @@ -11,8 +11,9 @@ import ( ) type HaveHTTPBodyMatcher struct { - Expected interface{} - cachedBody []byte + Expected interface{} + cachedResponse interface{} + cachedBody []byte } func (matcher *HaveHTTPBodyMatcher) Match(actual interface{}) (bool, error) { @@ -73,7 +74,7 @@ func (matcher *HaveHTTPBodyMatcher) NegatedFailureMessage(actual interface{}) (m // the Reader is closed and it is not readable again in FailureMessage() // or NegatedFailureMessage() func (matcher *HaveHTTPBodyMatcher) body(actual interface{}) ([]byte, error) { - if matcher.cachedBody != nil { + if matcher.cachedResponse == actual && matcher.cachedBody != nil { return matcher.cachedBody, nil } @@ -91,8 +92,10 @@ func (matcher *HaveHTTPBodyMatcher) body(actual interface{}) ([]byte, error) { switch a := actual.(type) { case *http.Response: + matcher.cachedResponse = a return body(a) case *httptest.ResponseRecorder: + matcher.cachedResponse = a return body(a.Result()) default: return nil, fmt.Errorf("HaveHTTPBody matcher expects *http.Response or *httptest.ResponseRecorder. Got:\n%s", format.Object(actual, 1)) diff --git a/syslog-forwarder/vendor/modules.txt b/syslog-forwarder/vendor/modules.txt index e0f98d19..d79c8aeb 100644 --- a/syslog-forwarder/vendor/modules.txt +++ b/syslog-forwarder/vendor/modules.txt @@ -119,7 +119,7 @@ github.com/onsi/ginkgo/v2/internal/interrupt_handler github.com/onsi/ginkgo/v2/internal/parallel_support github.com/onsi/ginkgo/v2/reporters github.com/onsi/ginkgo/v2/types -# github.com/onsi/gomega v1.27.10 +# github.com/onsi/gomega v1.28.0 ## explicit; go 1.18 github.com/onsi/gomega github.com/onsi/gomega/format