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

build(deps): Bump testcontainers from 0.16.7 to 0.17.0 #817

Merged
merged 2 commits into from
May 28, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 27, 2024

Bumps testcontainers from 0.16.7 to 0.17.0.

Release notes

Sourced from testcontainers's releases.

v0.17.0

Migration guide

  • The largest change of this release is switch to fallible API (instead of panics)
    • the easiest way to use unwrap or expect for all testcontainers operations.
    • or you can cast error if your tests are already Result based
  • The Image::exec_after_start method returns a Result, so if you have an implementation of Image that uses exec_after_start, it's important to handle possible errors (e.g required port not found)
  • If you encounter container startup timeout, adjust it with RunnableImage::with_startup_timeout
  • Change testcontainers::CgroupnsMode to testcontainers::core::CgroupnsMode if your code rely on this.
  • exec now returns a result with ability to get exit code and logs of the command. You can ignore the result if you don't need this.

Details

Bug Fixes

  • Collect bridge IP address correctly (#626)

Features

  • Impl Error for WaitError (#629)
  • [❗] Extend exec interface to return logs and exec code (#631)
  • Ability to access container logs (#633)
  • [❗] Switch to fallible API (#636)
  • Make container and exec logs Sendable (#637)
  • Map container not found error to eof for container log streams (#639)
  • Expose follow flag for stdout and stderr (#640)
  • Add ability to read container logs into Vec (#641)
  • [❗] Add container startup timeout with default of 1 minute (#643)

Miscellaneous Tasks

  • Fix clippy warning without features enabled (#632)

Refactor

  • [❗] Drop re-export of CgroupnsMode accessible through core (#630)
  • [❗] Drop previously deprecated get_host_ip_address (#628)
  • [❗] Return PortNotExposed error from ContainerState::host_port_* (#644)
Changelog

Sourced from testcontainers's changelog.

[0.17.0] - 2024-05-26

Details

Bug Fixes

  • Collect bridge IP address correctly (#626)
  • Replace missed panics with Result (#638)

Features

  • Impl Error for WaitError (#629)
  • [❗] Extend exec interface to return logs and exec code (#631)
  • Ability to access container logs (#633)
  • [❗] Switch to fallible API (#636)
  • Make container and exec logs Sendable (#637)
  • Map container not found error to eof for container log streams (#639)
  • Expose follow flag for stdout and stderr (#640)
  • Add ability to read container logs into Vec (#641)
  • [❗] Add container startup timeout with default of 1 minute (#643)

Miscellaneous Tasks

  • Fix clippy warning without features enabled (#632)

Refactor

  • [❗] Drop re-export of CgroupnsMode accessible through core (#630)
  • [❗] Drop previously deprecated get_host_ip_address (#628)
  • [❗] Return PortNotExposed error from ContainerState::host_port_* (#644)
Commits
  • 03d534b chore: release v0.17.0 (#645)
  • 966221c refactor!: return PortNotExposed error from ContainerState::host_port_* (...
  • 54e80e4 feat!: add container startup timeout with default of 1 minute (#643)
  • 8f4279f chore: update authors (#642)
  • c40be44 feat: add ability to read container logs into Vec (#641)
  • 032cc12 feat: expose follow flag for stdout and stderr (#640)
  • b4780a9 feat: map container not found error to eof for container log streams (#639)
  • 95ef9ad fix: replace missed panics with Result (#638)
  • e44fc25 feat: make container and exec logs Sendable (#637)
  • d51b9a0 feat!: switch to fallible API (#636)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [testcontainers](https://github.com/testcontainers/testcontainers-rs) from 0.16.7 to 0.17.0.
- [Release notes](https://github.com/testcontainers/testcontainers-rs/releases)
- [Changelog](https://github.com/testcontainers/testcontainers-rs/blob/main/CHANGELOG.md)
- [Commits](testcontainers/testcontainers-rs@0.16.7...0.17.0)

---
updated-dependencies:
- dependency-name: testcontainers
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot requested a review from a team as a code owner May 27, 2024 14:00
@dependabot dependabot bot added dependencies rust Pull requests that update Rust code labels May 27, 2024
The testcontainers v0.17.0 changed the functions to return a Result
object. Therefore, this commit updates the test code to call expect
function to extract the value or fail the test.

Signed-off-by: José Guilherme Vanz <jguilhermevanz@suse.com>
@jvanz
Copy link
Member

jvanz commented May 27, 2024

@kubewarden/kubewarden-developers I've fixed the testcontainers calls.

Copy link

codecov bot commented May 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 9.48%. Comparing base (3ff7348) to head (a6d4fd3).

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #817   +/-   ##
=====================================
  Coverage   9.48%   9.48%           
=====================================
  Files         20      20           
  Lines       1729    1729           
=====================================
  Hits         164     164           
  Misses      1565    1565           
Flag Coverage Δ
unit-tests 9.48% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@flavio flavio merged commit 8dbc9c0 into main May 28, 2024
21 checks passed
@dependabot dependabot bot deleted the dependabot/cargo/testcontainers-0.17.0 branch May 28, 2024 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dependencies dependencies rust Pull requests that update Rust code
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants