Skip to content

Releases: ory/dockertest

v4.0.0-beta.4

18 Mar 14:14
3fa1d89

Choose a tag to compare

v4.0.0-beta.4 Pre-release
Pre-release
feat: add log helpers (#656)

v4.0.0-beta.3

17 Mar 14:12
fa8f486

Choose a tag to compare

v4.0.0-beta.3 Pre-release
Pre-release
refactor: replace Managed* wrappers with interfaces (#655)

* refactor: replace Managed* wrappers with interfaces

Replace the concrete ManagedResource, ManagedPool, and ManagedNetwork
wrapper structs with Go interfaces. The *T variants now return the
restricted interface (Resource, Pool, Network) while the non-T variants
return the closable interface (ClosableResource, ClosablePool,
ClosableNetwork).

Key changes:
- Define Resource/ClosableResource, Network/ClosableNetwork,
  Pool/ClosablePool interfaces
- Unexport Pool struct → pool, Network struct → dockerNetwork
- Remove ~115 lines of manual delegation boilerplate
- ConnectToNetwork/DisconnectFromNetwork/GetIPInNetwork now accept the
  Network interface directly, removing the ManagedNetwork.Network()
  escape hatch
- Add NewResource constructor for external unit tests
- Convert examples/cleanup/main.go to TestExplicitCleanup test

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* docs: fix three inaccuracies in UPGRADE.md

- var pool *dockertest.Pool → var pool dockertest.ClosablePool
  (pointer-to-interface is meaningless; NewPool returns ClosablePool)
- CloseT example: RunT returns Resource (no CloseT); use Run to get
  ClosableResource when explicit teardown is needed
- Registry function signatures: add return types (error, bool, slice)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* chore: apply formatting

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

v4.0.0-beta.2

13 Mar 14:14
cff3996

Choose a tag to compare

v4.0.0-beta.2 Pre-release
Pre-release

What's Changed

  • fix: force-remove containers on pool cleanup and add ref-counting tests by @aeneasr in #654

Full Changelog: v4.0.0-beta.1...v4.0.0-beta.2

v4.0.0-beta.1

12 Mar 10:06
aed9230

Choose a tag to compare

v4.0.0-beta.1 Pre-release
Pre-release

A significantly better and more lightweight Dockertest based on the Moby client. For upgrade instructions please check: https://github.com/ory/dockertest/blob/v4/UPGRADE.md

v3.12.0

01 Apr 11:40

Choose a tag to compare

What's Changed

  • chore(deps): bump github.com/docker/cli from 26.1.4+incompatible to 27.1.2+incompatible by @dependabot in #524
  • chore(deps): bump actions/checkout from 3 to 4 by @dependabot in #514
  • chore(deps): bump actions/stale from 4 to 9 by @dependabot in #526
  • chore(deps): bump github.com/opencontainers/runc from 1.1.13 to 1.1.15 by @dependabot in #538
  • chore(deps): bump actions/checkout from 2 to 4 by @dependabot in #527
  • feat: use creds helper by @GuillaumeSmaha in #520
  • added AuthConfigs to BuildOptions and pass that to BuildImage by @DGollings in #488
  • add multiple test container example by @akoserwal in #515
  • fix: trying to bind to an outbound ip returns an empty list of port bindings by @atzoum in #533
  • chore(deps): bump golang.org/x/sys from 0.21.0 to 0.28.0 by @dependabot in #548
  • chore(deps): bump actions/stale from 4 to 9 by @dependabot in #550
  • chore(deps): bump actions/checkout from 2 to 4 by @dependabot in #549
  • chore(deps): bump actions/checkout from 2 to 4 by @dependabot in #555
  • chore(deps): bump github.com/docker/cli from 27.1.2+incompatible to 27.4.1+incompatible by @dependabot in #553
  • chore(deps): bump github.com/opencontainers/runc from 1.1.15 to 1.2.3 by @dependabot in #551
  • chore(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 by @dependabot in #547
  • feat: add support for BuildKit when building images by @tmc in #416
  • chore(deps): bump actions/setup-node from 2.pre.beta to 4.1.0 by @dependabot in #539
  • chore(deps): bump actions/stale from 4 to 9 by @dependabot in #554

New Contributors

Full Changelog: v3.11.0...v3.12.0

v3.11.0

12 Aug 09:21
6110e9a

Choose a tag to compare

What's Changed

  • chore(deps): bump github.com/opencontainers/runc from 1.1.5 to 1.1.6 by @dependabot in #435
  • chore(deps): bump github.com/Microsoft/go-winio from 0.6.0 to 0.6.1 by @dependabot in #437
  • chore(deps): bump github.com/lib/pq from 0.0.0-20180327071824-d34b9ff171c2 to 1.10.8 by @dependabot in #438
  • chore(deps): bump github.com/docker/docker from 20.10.7+incompatible to 20.10.24+incompatible by @dependabot in #426
  • chore(deps): bump actions/checkout from 2 to 3 by @dependabot in #427
  • chore(deps): bump github.com/sirupsen/logrus from 1.9.0 to 1.9.2 by @dependabot in #450
  • chore(deps): bump github.com/containerd/continuity from 0.3.0 to 0.4.1 by @dependabot in #451
  • chore(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.3 by @dependabot in #449
  • chore(deps): bump github.com/opencontainers/runc from 1.1.6 to 1.1.7 by @dependabot in #442
  • chore(deps): bump golang.org/x/sys from 0.7.0 to 0.8.0 by @dependabot in #445
  • chore(deps): bump github.com/moby/term from 0.0.0-20201216013528-df9cb8a40635 to 0.5.0 by @dependabot in #446
  • chore(deps): bump github.com/docker/cli from 20.10.17+incompatible to 24.0.1+incompatible by @dependabot in #448
  • chore: bump dependencies and fix some lint by @alnr in #499
  • chore(deps): bump golang.org/x/sys from 0.19.0 to 0.21.0 by @dependabot in #501
  • chore(deps): bump actions/checkout from 2 to 4 by @dependabot in #475
  • feat: fall back to podman if available by @SoMuchForSubtlety in #452
  • test: refactor asserts by @alexandear in #497
  • use defer instead of os.Exit(m.Run()) by @pmenglund in #493
  • docs: remove outdated dep install instruction by @alexandear in #505
  • chore: remove direct dependency on gotest.tools/v3 by @alexandear in #504
  • chore: replace deprecated ioutil.TempDir with os.MkdirTemp by @alexandear in #506
  • chore(deps): bump github.com/opencontainers/runc from 1.1.12 to 1.1.13 by @dependabot in #509
  • move tests to dockertest_test package by @siraj-mx51 in #490
  • chore(deps): bump github.com/opencontainers/image-spec from 1.0.2 to 1.1.0 by @dependabot in #510
  • chore(deps): bump actions/setup-node from 2.pre.beta to 4.0.2 by @dependabot in #503
  • chore(deps): bump actions/setup-go from 4 to 5 by @dependabot in #508
  • chore(deps): bump actions/stale from 4 to 9 by @dependabot in #507
  • feat: introduce cve scanners by @Demonsthere in #500
  • chore: update docker to v27.1.1 by @adamwalach in #522

New Contributors

Full Changelog: v3.10.0...v3.11.0

v3.10.0

17 Apr 12:16
0d54053

Choose a tag to compare

chore(deps): bump actions/stale from 4 to 8 (#430)

Bumps [actions/stale](https://github.com/actions/stale) from 4 to 8.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v4...v8)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

v3.9.1

26 May 09:29
7b25128

Choose a tag to compare

chore(deps): bump github.com/opencontainers/runc from 1.1.1 to 1.1.2 …

v3.9.0

24 May 09:21
148c3da

Choose a tag to compare

chore(deps): bump gotest.tools/v3 from 3.1.0 to 3.2.0 (#353)

Bumps [gotest.tools/v3](https://github.com/gotestyourself/gotest.tools) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/gotestyourself/gotest.tools/releases)
- [Commits](https://github.com/gotestyourself/gotest.tools/compare/v3.1.0...v3.2.0)

---
updated-dependencies:
- dependency-name: gotest.tools/v3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

v3.8.1

28 Nov 18:09
46586e3

Choose a tag to compare

Fix freebsd (#324)

See https://github.com/ory/kratos/issues/1645