Releases: filipsnastins/tomodachi-testcontainers
1.0.0
New features
-
New documentation available at https://filipsnastins.github.io/tomodachi-testcontainers/
-
WireMockContainer
: addswiremock_container
pytest fixture. -
WireMockContainer
: addsreset_wiremock_container_on_teardown
pytest fixture that deletes all WireMock stub mappings after each test. -
edge_port
in all Testcontainers now defaults toNone
.
When it'sNone
, the container will be started with a random port generated bytomodachi_testcontainers.utils.get_available_port()
. -
tomodachi_testcontainers.pytest
module removed, and the code moved one level up:tomodachi_testcontainers.fixtures
tomodachi_testcontainers.assertions
tomodachi_testcontainers.async_probes
Breaking changes
-
Removed the leading underscore from
restart_localstack_container_on_teardown
andreset_moto_container_on_teardown
pytest fixture names. -
Fixtures
moto_snssqs_tc
andlocalstack_snssqs_tc
are now session-scoped (@pytest.fixture(scope="session")
). -
Fixture
testcontainers_docker_image
renamed totestcontainer_image
. -
Renamed environment variables:
Old name New name TOMODACHI_TESTCONTAINER_DOCKER_NETWORK
TESTCONTAINER_DOCKER_NETWORK
TOMODACHI_TESTCONTAINER_DOCKERFILE_PATH
TESTCONTAINER_DOCKERFILE_PATH
TOMODACHI_TESTCONTAINER_DOCKER_BUILD_CONTEXT
TESTCONTAINER_DOCKER_BUILD_CONTEXT
TOMODACHI_TESTCONTAINER_DOCKER_BUILD_TARGET
TESTCONTAINER_DOCKER_BUILD_TARGET
TOMODACHI_TESTCONTAINER_IMAGE_ID
TESTCONTAINER_IMAGE_ID
0.14.0
0.14.0 (2024-01-18)
New features
- (#169)
clients.SNSSQSTestClient
: newsend
method for sending messages to SQS queues.
Breaking changes
- (#169)
clients.SNSSQSTestClient
: removed redundantfifo
argument fromcreate_queue
,create_topic
, andsubscribe_to
method; relying on thequeue_name
andtopic_name
to end with.fifo
suffix instead.
0.13.2
What's Changed
Fixes
- (#156) The
EphemeralDockerImage
andtestcontainers_docker_image
fixture will raise the original error message if the Docker build with BuiltKit fails. Previously, the original error was hidden.
Full Changelog: 0.13.1...0.13.2
0.13.1
0.13.1 (2023-12-19)
New features
- Enable parallel test execution with
pytest-xdist
Breaking changes
- Fixture
testcontainers_docker_image
now returns animage_id
as astr
instead ofdocker.models.images.Image
instance.
Full Changelog: 0.13.0...0.13.1
0.13.0
0.13.0 (2023-12-18)
New features
- Support Python 3.12
Bug fixes
DynamoDBAdminContainer
: fix AWS region configuration.
Full Changelog: 0.12.0...0.13.0
0.12.0
0.12.0 (2023-11-26)
New features
TomodachiContainer
- added support for exporting code coverage.TomodachiContainer
- added example of how to attach a remote debugger to the container.
Documentation
README
: documented Testcontainer debugging tips, see https://github.com/filipsnastins/tomodachi-testcontainers#debugging-testcontainersREADME
: documented how to export test coverage fromTomodachiContainer
, see https://github.com/filipsnastins/tomodachi-testcontainers#exporting-code-coverage-from-testcontainers
Changes
DockerContainer
- logs forwarded from the Testcontainers will exclude timestamps
to make it easier to read the logs - log lines will be shorter.DockerContainer
- removedtestconatiners-
prefix from the container name
to make it easier to read the logs - log lines will be shorter.
What's Changed
- (feat) Debugging testcontainers and exporting code coverage by @filipsnastins in #111
Full Changelog: 0.11.0...0.12.0
0.11.0
0.11.0 (2023-11-19)
New features
- Added Minio container -
MinioContainer
- Added DynamoDB Admin container -
DynamoDBAdminContainer
Bug fixes
- Set
AWS_DEFAULT_REGION
,AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
environment variables on LocalStack container.
What's Changed
- (feat) DynamoDB Admin container by @filipsnastins in #105
- (feat) Minio container by @filipsnastins in #106
Full Changelog: 0.10.4...0.11.0
0.10.4
0.10.4 (2023-11-17)
New features
LocalStackContainer
- updated base image tolocalstack/localstack:3
PostgreSQLContainer
- updated base image topostgres:16
Bug fixes
DockerContainer
: remove container if startup failed instead of leaving it in stopped state.MySQLContainer
: addcryptography
as an extra dependency. Required forpymysql
.
What's Changed
- chore(deps): bump asyncssh from 2.14.0 to 2.14.1 by @dependabot in #98
- chore(deps-dev): bump mypy from 1.6.1 to 1.7.0 by @dependabot in #100
- chore(deps-dev): bump ruff from 0.1.4 to 0.1.5 by @dependabot in #99
- 🐛 (bug) Remove container on startup failure by @filipsnastins in #101
- (chore) Bump LocalStack to 3.0.0 by @filipsnastins in #103
- (fix) Add MySQL optional dependencies by @filipsnastins in #102
Full Changelog: 0.10.3...0.10.4
0.10.3
0.10.3 (2023-11-15)
Bug fixes
- Fixed a typo in
pyproject
extra dependencies -pip install tomodachi-testcontainers[mysql]
Full Changelog: 0.10.2...0.10.3
0.10.2
0.10.2 (2023-11-08)
New features
-
DockerContainer
: logs from the container are now prefixed with the container name. This makes it easier to distinguish logs from multiple containers, especially when using multiple containers of the same type. -
WireMockContainer
: added example of configuring WireMock mappings with [python-wiremock (https://github.com/wiremock/python-wiremock). Install python-wiremock as an extra dependency with:pip install tomodachi-testcontainers[wiremock]
What's Changed
- 🐛 bug: remove container on failed healthcheck; forward container logs only in context manager by @filipsnastins in #96
- Configure WireMock container with python-wiremock by @filipsnastins in #97
Full Changelog: 0.10.1...0.10.2