Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update module github.com/onsi/gomega to v1.32.0 #41

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 6, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/onsi/gomega v1.13.0 -> v1.32.0 age adoption passing confidence

Release Notes

onsi/gomega (github.com/onsi/gomega)

v1.32.0

Compare Source

1.32.0

Maintenance
  • Migrate github.com/golang/protobuf to google.golang.org/protobuf [436a197]

    This release drops the deprecated github.com/golang/protobuf and adopts google.golang.org/protobuf. Care was taken to ensure the release is backwards compatible (thanks @​jbduncan !). Please open an issue if you run into one.

  • chore: test with Go 1.22 (#​733) [32ef35e]

  • Bump golang.org/x/net from 0.19.0 to 0.20.0 (#​717) [a0d0387]

  • Bump github-pages and jekyll-feed in /docs (#​732) [b71e477]

  • docs: fix typo and broken anchor link to gstruct [f460154]

  • docs: fix HaveEach matcher signature [a2862e4]

v1.31.1

Compare Source

1.31.1

Fixes
  • Inverted arguments order of FailureMessage of BeComparableToMatcher [e0dd999]
  • Update test in case keeping msg is desired [ad1a367]
Maintenance
  • Show how to import the format sub package [24e958d]
  • tidy up go.sum [26661b8]
  • bump dependencies [bde8f7a]

v1.31.0

Compare Source

1.31.0

Features
  • Async assertions include context cancellation cause if present [121c37f]
Maintenance

v1.30.0

Compare Source

1.30.0

Features
  • BeTrueBecause and BeFalseBecause allow for better failure messages [4da4c7f]
Maintenance

v1.29.0

Compare Source

1.29.0

Features
  • MatchError can now take an optional func(error) bool + description [2b39142]

v1.28.1

Compare Source

1.28.1

Maintenance
  • Bump github.com/onsi/ginkgo/v2 from 2.12.0 to 2.13.0 [635d196]
  • Bump github.com/google/go-cmp from 0.5.9 to 0.6.0 [14f8859]
  • Bump golang.org/x/net from 0.14.0 to 0.17.0 [d8a6508]
  • #​703 doc(matchers): HaveEach() doc comment updated [2705bdb]
  • Minor typos (#​699) [375648c]

v1.28.0

Compare Source

1.28.0

Features
Fixes
  • Read Body for Newer Responses in HaveHTTPBodyMatcher (#​686) [18d6673]
Maintenance

v1.27.10

Compare Source

1.27.10

Fixes
  • fix: go 1.21 adding goroutine ID to creator+location (#​685) [bdc7803]

v1.27.9

Compare Source

v1.27.8

Compare Source

1.27.8

Fixes
  • HaveExactElement should not call FailureMessage if a submatcher returned an error [096f392]
Maintenance
  • Bump github.com/onsi/ginkgo/v2 from 2.9.5 to 2.9.7 (#​669) [8884bee]

v1.27.7

Compare Source

1.27.7

Fixes
  • fix: gcustom.MakeMatcher accepts nil as actual value (#​666) [57054d5]
Maintenance

v1.27.6

Compare Source

1.27.6

Fixes
  • Allow collections matchers to work correctly when expected has nil elements [60e7cf3]
Maintenance
  • updates MatchError godoc comment to also accept a Gomega matcher (#​654) [67b869d]

v1.27.5

Compare Source

1.27.5

Maintenance

v1.27.4

Compare Source

1.27.4

Fixes
  • improve error formatting and remove duplication of error message in Eventually/Consistently [854f075]
Maintenance
  • Bump github.com/onsi/ginkgo/v2 from 2.9.0 to 2.9.1 (#​650) [ccebd9b]

v1.27.3

Compare Source

1.27.3

Fixes
  • format.Object now always includes err.Error() when passed an error [86d97ef]
  • Fix HaveExactElements to work inside ContainElement or other collection matchers (#​648) [636757e]
Maintenance
  • Bump github.com/golang/protobuf from 1.5.2 to 1.5.3 (#​649) [cc16689]
  • Bump github.com/onsi/ginkgo/v2 from 2.8.4 to 2.9.0 (#​646) [e783366]

v1.27.2

Compare Source

1.27.2

Fixes
  • improve poll progress message when polling a consistently that has been passing [28a319b]
Maintenance
  • bump ginkgo
  • remove tools.go hack as Ginkgo 2.8.2 automatically pulls in the cli dependencies [81443b3]

v1.27.1

Compare Source

1.27.1

Maintenance

v1.27.0

Compare Source

1.27.0

Features
  • Add HaveExactElements matcher (#​634) [9d50783]
  • update Gomega docs to discuss GinkgoHelper() [be32774]
Maintenance

v1.26.0

Compare Source

1.26.0

Features
  • When a polled function returns an error, keep track of the actual and report on the matcher state of the last non-errored actual [21f3090]
  • improve eventually failure message output [c530fb3]
Fixes
  • fix several documentation spelling issues [e2eff1f]

v1.25.0

Compare Source

1.25.0

Features
Maintenance

v1.24.2

Compare Source

1.24.2

Fixes
Maintenance

v1.24.1

Compare Source

v1.24.0

Compare Source

1.24.0

Features

Introducting gcustom - a convenient mechanism for building custom matchers.

This is an RC release for gcustom. The external API may be tweaked in response to feedback however it is expected to remain mostly stable.

Maintenance
  • Update BeComparableTo documentation [756eaa0]

v1.23.0

Compare Source

1.23.0

Features
  • Custom formatting on a per-type basis can be provided using format.RegisterCustomFormatter() -- see the docs here

  • Substantial improvement have been made to StopTrying():

    • Users can now use StopTrying().Wrap(err) to wrap errors and StopTrying().Attach(description, object) to attach arbitrary objects to the StopTrying() error
    • StopTrying() is now always interpreted as a failure. If you are an early adopter of StopTrying() you may need to change your code as the prior version would match against the returned value even if StopTrying() was returned. Going forward the StopTrying() api should remain stable.
    • StopTrying() and StopTrying().Now() can both be used in matchers - not just polled functions.
  • TryAgainAfter(duration) is used like StopTrying() but instructs Eventually and Consistently that the poll should be tried again after the specified duration. This allows you to dynamically adjust the polling duration.

  • ctx can now be passed-in as the first argument to Eventually and Consistently.

Maintenance

v1.22.1

Compare Source

1.22.1

Fixes

  • When passed a context and no explicit timeout, Eventually will only timeout when the context is cancelled [e5105cf]
  • Allow StopTrying() to be wrapped [bf3cba9]

Maintenance

v1.22.0

Compare Source

1.22.0

Features

Several improvements have been made to Eventually and Consistently in this and the most recent releases:

  • Eventually and Consistently can take a context.Context [65c01bc]
    This enables integration with Ginkgo 2.3.0's interruptible nodes and node timeouts.
  • Eventually and Consistently that are passed a SpecContext can provide reports when an interrupt occurs [0d063c9]
  • Eventually/Consistently will forward an attached context to functions that ask for one [e2091c5]
  • Eventually/Consistently supports passing arguments to functions via WithArguments() [a2dc7c3]
  • Eventually and Consistently can now be stopped early with StopTrying(message) and StopTrying(message).Now() [52976bb]

These improvements are all documented in Gomega's docs

v1.21.1

Compare Source

v1.21.1

Features
  • Eventually and Consistently that are passed a SpecContext can provide reports when an interrupt occurs [0d063c9]

v1.21.0

Compare Source

1.21.0

Features
  • Eventually and Consistently can take a context.Context [65c01bc]
    This enables integration with Ginkgo 2.3.0's interruptible nodes and node timeouts.
  • Introduces Eventually.Within.ProbeEvery with tests and documentation (#​591) [f633800]
  • New BeKeyOf matcher with documentation and unit tests (#​590) [fb586b3]

Fixes

  • Cover the entire gmeasure suite with leak detection [8c54344]
  • Fix gmeasure leak [119d4ce]
  • Ignore new Ginkgo ProgressSignal goroutine in gleak [ba548e2]

Maintenance

  • Fixes crashes on newer Ruby 3 installations by upgrading github-pages gem dependency (#​596) [12469a0]

v1.20.2

Compare Source

1.20.2

Fixes

  • label specs that rely on remote access; bump timeout on short-circuit test to make it less flaky [35eeadf]
  • gexec: allow more headroom for SIGABRT-related unit tests (#​581) [5b78f40]
  • Enable reading from a closed gbytes.Buffer (#​575) [061fd26]

Maintenance

  • Bump github.com/onsi/ginkgo/v2 from 2.1.5 to 2.1.6 (#​583) [55d895b]
  • Bump github.com/onsi/ginkgo/v2 from 2.1.4 to 2.1.5 (#​582) [346de7c]

v1.20.1

Compare Source

1.20.1
Fixes
Maintenance

v1.20.0

Compare Source

Features
Fixes
Maintenance
1.19.0
Features
  • New HaveEach matcher to ensure that each and every element in an array, slice, or map satisfies the passed in matcher. (#​523) [9fc2ae2] (#​524) [c8ba582]
  • Users can now wrap the Gomega interface to implement custom behavior on each assertion. (#​521) [1f2e714]
  • ContainElement now accepts an additional pointer argument. Elements that satisfy the matcher are stored in the pointer enabling developers to easily add subsequent, more detailed, assertions against the matching element. (#​527) [1a4e27f]
Fixes

v1.19.0

Compare Source

Features

  • New HaveEach matcher to ensure that each and every element in an array, slice, or map satisfies the passed in matcher. (#​523) [9fc2ae2] (#​524) [c8ba582]
  • Users can now wrap the Gomega interface to implement custom behavior on each assertion. (#​521) [1f2e714]
  • ContainElement now accepts an additional pointer argument. Elements that satisfy the matcher are stored in the pointer enabling developers to easily add subsequent, more detailed, assertions against the matching element. (#​527) [1a4e27f]

Fixes

v1.18.1

Compare Source

v1.18.0

Compare Source

Features

  • Docs now live on the master branch in the docs folder which will make for easier PRs. The docs also use Ginkgo 2.0's new docs html/css/js. [2570272]
  • New HaveValue matcher can handle actuals that are either values (in which case they are passed on unscathed) or pointers (in which case they are indirected). Docs here. (#​485) [bdc087c]
  • Gmeasure has been declared GA [360db9d]

Fixes

  • Gomega now uses ioutil for Go 1.15 and lower (#​492) - official support is only for the most recent two major versions of Go but this will unblock users who need to stay on older unsupported versions of Go. [c29c1c0]

Maintenace

  • Remove Travis workflow (#​491) [72e6040]
  • Upgrade to Ginkgo 2.0.0 GA [f383637]
  • chore: fix description of HaveField matcher (#​487) [2b4b2c0]
  • use tools.go to ensure Ginkgo cli dependencies are included [f58a52b]
  • remove dockerfile and simplify github actions to match ginkgo's actions [3f8160d]

v1.17.0

Compare Source

1.17.0

Features
Fixes

Stop using deprecated ioutil package (#​467) [07f405d]

v1.16.0

Compare Source

Features

v1.15.0

Compare Source

1.15.0

Fixes

The previous version (1.14.0) introduced a change to allow Eventually and Consistently to support functions that make assertions. This was accomplished by overriding the global fail handler when running the callbacks passed to Eventually/Consistently in order to capture any resulting errors. Issue #​457 uncovered a flaw with this approach: when multiple Eventuallys are running concurrently they race when overriding the singleton global fail handler.

1.15.0 resolves this by requiring users who want to make assertions in Eventually/Consistently call backs to explicitly pass in a function that takes a Gomega as an argument. The passed-in Gomega instance can be used to make assertions. Any failures will cause Eventually to retry the callback. This cleaner interface avoids the issue of swapping out globals but comes at the cost of changing the contract introduced in v1.14.0. As such 1.15.0 introduces a breaking change with respect to 1.14.0 - however we expect that adoption of this feature in 1.14.0 remains limited.

In addition, 1.15.0 cleans up some of Gomega's internals. Most users shouldn't notice any differences stemming from the refactoring that was made.

v1.14.0

Compare Source

1.14.0

Features
  • gmeasure.SamplingConfig now suppers a MinSamplingInterval [e94dbca]
  • Eventually and Consistently support functions that make assertions [2f04e6e]
    • Eventually and Consistently now allow their passed-in functions to make assertions.
      These assertions must pass or the function is considered to have failed and is retried.
    • Eventually and Consistently can now take functions with no return values. These implicitly return nil
      if they contain no failed assertion. Otherwise they return an error wrapping the first assertion failure. This allows
      these functions to be used with the Succeed() matcher.
    • Introduce InterceptGomegaFailure - an analogue to InterceptGomegaFailures - that captures the first assertion failure
      and halts execution in its passed-in callback.
Fixes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/github.com-onsi-gomega-1.x branch from c610de6 to 2815959 Compare January 17, 2024 23:34
@renovate renovate bot changed the title Update module github.com/onsi/gomega to v1.30.0 Update module github.com/onsi/gomega to v1.31.0 Jan 17, 2024
@renovate renovate bot force-pushed the renovate/github.com-onsi-gomega-1.x branch from 2815959 to ee4bba3 Compare January 20, 2024 06:01
@renovate renovate bot changed the title Update module github.com/onsi/gomega to v1.31.0 Update module github.com/onsi/gomega to v1.31.1 Jan 20, 2024
@renovate renovate bot changed the title Update module github.com/onsi/gomega to v1.31.1 Update module github.com/onsi/gomega to v1.32.0 Mar 19, 2024
@renovate renovate bot force-pushed the renovate/github.com-onsi-gomega-1.x branch from ee4bba3 to abfc3ef Compare March 19, 2024 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants