Download Latest Version v0.38.0 source code.zip (21.4 MB)
Email in envelope

Get an email when there's a new version of Testcontainers Go

Home / v0.36.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-03-27 11.1 kB
v0.36.0 source code.tar.gz 2025-03-27 20.8 MB
v0.36.0 source code.zip 2025-03-27 21.2 MB
Totals: 3 Items   42.0 MB 1

What's Changed

⚠️ Breaking Changes

  • feat(azure)!: add Azurite, EventHubs and ServiceBus in the new Azure module, deprecating the old Azurite module (#3008) @mdelapenya

    Users of the old Azurite module must update their code to use the new Azure module instead, which contains the same functionality under the azurite sub-package. We took this opportunity to remove the unnecessarily exported Settings field from the Azurite container type, so users of the Azurite container type must update their code to simply do not use that field.

  • chore(deps)!: bump github.com/docker/docker from 27.1.1+incompatible to 28.0.1+incompatible (#3017) @dependabot[bot]

    Bumping the Docker package to a newer major version came with lots of benefits, but also some breaking changes. For that reason, users of the following container methods and types must update their code to use the new types and methods instead: - Container.Inspect: the return type has been changed from types.ContainerJSON to container.InspectResponse. - Container.State: the return type has been changed from types.ContainerState to container.State. - DockerProvider.ContainerFromType: the method signature has been changed to accept a container.Summary instead of a types.Container. At the same time, if consuming Docker types or methods, users must update their code to use the new types and methods instead. As a good rule of thumb, users of the "github.com/docker/docker/api/types" package must update their code to use "github.com/docker/docker/api/types/container" instead.

  • chore!: export DockerCompose type in compose package (#2953) @jasonyunicorn

    Users of the deprecated DockerCompose type from the compose module must update their code to use DockerComposer instead. The former unexported dockerCompose type has been renamed to DockerCompose. This breaking change was done because returning an un-exported type from a constructor function limits the flexibility and usability of the returned instance. Callers could use the exported methods, but could not declare variables of that type, pass instances to other functions, or embed them in structs without exposing the constructor itself. This breaking change was needed to improve the usability of the compose module.

  • feat!: log package for consistent output (#2979) @KenxinKun

    Users of the testcontainers.Logging variable must update their code to use the new log.Default() logger instance instead, and users of the testcontainers.Logger interface must update their code to use the new log.Logger interface instead. The new log package allows users to set a custom logger instance calling the log.SetDefault(l log.Logger) function. This breaking change was needed to improve the usability of the logging functionality when using the testcontainers package.

  • chore(nats)!: remove variadic arguments from nats ConnectionString (#2967) @jasonyunicorn

    Users of the NATS module and the ConnectionString type must remove the variadic arguments from the ConnectionString method. This breaking change was needed because those arguments weren't in use.

  • chore!: rename EnpointSettingsModifier to EndpointSettingsModifier (#2941) @NathanBaulch

    We fixed a typo in the exported field of the ContainerRequest struct, so users of the EnpointSettingsModifier type must update their code to use the EndpointSettingsModifier type instead.

🔒 Security

🚀 Features

  • feat(azure)!: add Azurite, EventHubs and ServiceBus in the new Azure module, deprecating the old Azurite module (#3008) @mdelapenya
  • feat(modules): add dind module (#3004) @acouvreur
  • feat: add ScyllaDB module (#2992) @mdelapenya
  • feat(mssql): add WithInitSQL function (#2988) @MattiasMTS
  • feat(redpanda): add bootstrap user account option (#2975) @bojand
  • feat!: log package for consistent output (#2979) @KenxinKun
  • feat: adds Pinecone module (#2955) @mdelapenya

🐛 Bug Fixes

  • fix(valkey): fix port race (#2962) @stevenh
  • fix(localstack): more reliable legacy tag detection (#2936) @NathanBaulch

📖 Documentation

  • docs: refine texts on how to set the module image (#3012) @mdelapenya
  • docs: correct container variable (#3010) @tacerus
  • docs: fix typo of grafanalgtm -> grafana-lgtm module package (#2999) @ZackarySantana
  • docs: remove duplicated options in the customisers lists (#2989) @mdelapenya

🧹 Housekeeping

  • chore: dockerise docs build (#3060) @mdelapenya
  • fix(ci): update sonar script path in the GH actions (#3045) @mdelapenya
  • chore(ci): manage Sonar projects from Github actions (#3039) @mdelapenya
  • chore(sonar): set main as default branch (#3038) @mdelapenya
  • fix(sonar): run on ubuntu and the lowest Go version (#3037) @mdelapenya
  • fix(ci): update core path in sonar build (#3036) @mdelapenya
  • fix: use empty dir for the core (#3035) @mdelapenya
  • fix: pass secret to the reusable workflow (#3034) @mdelapenya
  • chore(ci): use new GH action for SonarQube (#3007) @mdelapenya
  • chore: readd dependabot, including a way to refresh the project files for all the modules (#2997) @mdelapenya
  • chore: enable empty-block from revive (#2994) @mmorel-35
  • fix(ci): exclude mkdocs.yml file and sonar.properties from the changed-modules script (#2993) @mdelapenya
  • chore(ci): run compose module tests against the upstream compose projects (#2990) @mdelapenya
  • chore(ci): add an end job to verify the pipeline finished with success (#2991) @mdelapenya
  • chore(k6): exclude "modules/k6" from the build (#2987) @mdelapenya
  • chore: enable var-naming from revive (private vars only) (#2978) @mmorel-35
  • fix(ci): use same condition for sonar steps (#2974) @mdelapenya
  • fix: return unique modified modules (#2973) @mdelapenya
  • chore(ci): run lint in a separate build before running the tests (#2876) @mdelapenya
  • chore: enable unused-parameter from revive (#2949) @mmorel-35
  • chore: enable use-any from revive (#2948) @mmorel-35
  • chore: enable var-declaration from revive linter (#2942) @mmorel-35
  • chore: enable context-as-argument from revive linter (#2946) @mmorel-35
  • chore: enable early-return, indent-error-flow and superfluous-else from revive linter (#2947) @mmorel-35
  • chore: recover from panic in SkipIfProviderIsNotHealthy test helper function (#2939) @jasonyunicorn
  • chore: fix typos (#2940) @NathanBaulch

📦 Dependency updates

Source: README.md, updated 2025-03-27