diff --git a/src/notifications/go.mod b/src/notifications/go.mod index 62f88164..17dbb256 100644 --- a/src/notifications/go.mod +++ b/src/notifications/go.mod @@ -11,7 +11,7 @@ require ( github.com/golang-jwt/jwt/v5 v5.2.2 github.com/gorilla/mux v1.8.1 github.com/onsi/ginkgo/v2 v2.23.4 - github.com/onsi/gomega v1.36.3 + github.com/onsi/gomega v1.37.0 github.com/pivotal-cf-experimental/rainmaker v0.0.0-20160401052143-d533d01b7c52 github.com/pivotal-cf-experimental/warrant v0.0.0-20211122194707-17385443920f github.com/pivotal-cf/uaa-sso-golang v0.0.0-20141119184546-0b91e8ad4bb6 diff --git a/src/notifications/go.sum b/src/notifications/go.sum index 9695562a..3f2afb22 100644 --- a/src/notifications/go.sum +++ b/src/notifications/go.sum @@ -80,8 +80,8 @@ github.com/onsi/ginkgo/v2 v2.23.4/go.mod h1:Bt66ApGPBFzHyR+JO10Zbt0Gsp4uWxu5mIOT github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= 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.36.3 h1:hID7cr8t3Wp26+cYnfcjR6HpJ00fdogN6dqZ1t6IylU= -github.com/onsi/gomega v1.36.3/go.mod h1:8D9+Txp43QWKhM24yyOBEdpkzN8FvJyAwecBgsU4KU0= +github.com/onsi/gomega v1.37.0 h1:CdEG8g0S133B4OswTDC/5XPSzE1OeP29QOioj2PID2Y= +github.com/onsi/gomega v1.37.0/go.mod h1:8D9+Txp43QWKhM24yyOBEdpkzN8FvJyAwecBgsU4KU0= github.com/pivotal-cf-experimental/rainmaker v0.0.0-20160401052143-d533d01b7c52 h1:YaPgxzuENXlCMHe/JVQICTIVtWdXbBodzNnQM/A8+rY= github.com/pivotal-cf-experimental/rainmaker v0.0.0-20160401052143-d533d01b7c52/go.mod h1:NkPUxSBmoagsX+nu++zlZZKxjFJ1E8VQnduId7VdfFY= github.com/pivotal-cf-experimental/warrant v0.0.0-20211122194707-17385443920f h1:SqlGaNYPJHlTYagr1ENX1FJ1zUmDua70Y+8lPrEDQxw= diff --git a/src/notifications/vendor/github.com/onsi/gomega/CHANGELOG.md b/src/notifications/vendor/github.com/onsi/gomega/CHANGELOG.md index ba3bfe7a..890d8922 100644 --- a/src/notifications/vendor/github.com/onsi/gomega/CHANGELOG.md +++ b/src/notifications/vendor/github.com/onsi/gomega/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.37.0 + +### Features +- add To/ToNot/NotTo aliases for AsyncAssertion [5666f98] + ## 1.36.3 ### Maintenance diff --git a/src/notifications/vendor/github.com/onsi/gomega/gomega_dsl.go b/src/notifications/vendor/github.com/onsi/gomega/gomega_dsl.go index 270e4b76..a491a64b 100644 --- a/src/notifications/vendor/github.com/onsi/gomega/gomega_dsl.go +++ b/src/notifications/vendor/github.com/onsi/gomega/gomega_dsl.go @@ -22,7 +22,7 @@ import ( "github.com/onsi/gomega/types" ) -const GOMEGA_VERSION = "1.36.3" +const GOMEGA_VERSION = "1.37.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/src/notifications/vendor/github.com/onsi/gomega/internal/async_assertion.go b/src/notifications/vendor/github.com/onsi/gomega/internal/async_assertion.go index 9932640e..a3a646e4 100644 --- a/src/notifications/vendor/github.com/onsi/gomega/internal/async_assertion.go +++ b/src/notifications/vendor/github.com/onsi/gomega/internal/async_assertion.go @@ -145,12 +145,24 @@ func (assertion *AsyncAssertion) Should(matcher types.GomegaMatcher, optionalDes return assertion.match(matcher, true, optionalDescription...) } +func (assertion *AsyncAssertion) To(matcher types.GomegaMatcher, optionalDescription ...any) bool { + return assertion.Should(matcher, optionalDescription...) +} + func (assertion *AsyncAssertion) ShouldNot(matcher types.GomegaMatcher, optionalDescription ...any) bool { assertion.g.THelper() vetOptionalDescription("Asynchronous assertion", optionalDescription...) return assertion.match(matcher, false, optionalDescription...) } +func (assertion *AsyncAssertion) ToNot(matcher types.GomegaMatcher, optionalDescription ...any) bool { + return assertion.ShouldNot(matcher, optionalDescription...) +} + +func (assertion *AsyncAssertion) NotTo(matcher types.GomegaMatcher, optionalDescription ...any) bool { + return assertion.ShouldNot(matcher, optionalDescription...) +} + func (assertion *AsyncAssertion) buildDescription(optionalDescription ...any) string { switch len(optionalDescription) { case 0: diff --git a/src/notifications/vendor/github.com/onsi/gomega/types/types.go b/src/notifications/vendor/github.com/onsi/gomega/types/types.go index da39b361..685a46f3 100644 --- a/src/notifications/vendor/github.com/onsi/gomega/types/types.go +++ b/src/notifications/vendor/github.com/onsi/gomega/types/types.go @@ -70,6 +70,11 @@ type AsyncAssertion interface { Should(matcher GomegaMatcher, optionalDescription ...any) bool ShouldNot(matcher GomegaMatcher, optionalDescription ...any) bool + // equivalent to above + To(matcher GomegaMatcher, optionalDescription ...any) bool + ToNot(matcher GomegaMatcher, optionalDescription ...any) bool + NotTo(matcher GomegaMatcher, optionalDescription ...any) bool + WithOffset(offset int) AsyncAssertion WithTimeout(interval time.Duration) AsyncAssertion WithPolling(interval time.Duration) AsyncAssertion diff --git a/src/notifications/vendor/modules.txt b/src/notifications/vendor/modules.txt index 8de14609..fbca62cd 100644 --- a/src/notifications/vendor/modules.txt +++ b/src/notifications/vendor/modules.txt @@ -81,7 +81,7 @@ github.com/onsi/ginkgo/v2/internal/parallel_support github.com/onsi/ginkgo/v2/internal/testingtproxy github.com/onsi/ginkgo/v2/reporters github.com/onsi/ginkgo/v2/types -# github.com/onsi/gomega v1.36.3 +# github.com/onsi/gomega v1.37.0 ## explicit; go 1.23.0 github.com/onsi/gomega github.com/onsi/gomega/format