Skip to content

Releases: filipsnastins/tomodachi-testcontainers

1.0.0

20 Jan 12:21
5dbff32
Compare
Choose a tag to compare

New features

  • New documentation available at https://filipsnastins.github.io/tomodachi-testcontainers/

  • WireMockContainer: adds wiremock_container pytest fixture.

  • WireMockContainer: adds reset_wiremock_container_on_teardown pytest fixture that deletes all WireMock stub mappings after each test.

  • edge_port in all Testcontainers now defaults to None.
    When it's None, the container will be started with a random port generated by tomodachi_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 and reset_moto_container_on_teardown pytest fixture names.

  • Fixtures moto_snssqs_tc and localstack_snssqs_tc are now session-scoped (@pytest.fixture(scope="session")).

  • Fixture testcontainers_docker_image renamed to testcontainer_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

18 Jan 13:30
93282e1
Compare
Choose a tag to compare

0.14.0 (2024-01-18)

New features

  • (#169) clients.SNSSQSTestClient: new send method for sending messages to SQS queues.

Breaking changes

  • (#169) clients.SNSSQSTestClient: removed redundant fifo argument from create_queue, create_topic, and subscribe_to method; relying on the queue_name and topic_name to end with .fifo suffix instead.

0.13.2

09 Jan 16:09
2ca0215
Compare
Choose a tag to compare

What's Changed

Fixes

  • (#156) The EphemeralDockerImage and testcontainers_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

19 Dec 07:56
052d3b7
Compare
Choose a tag to compare

0.13.1 (2023-12-19)

New features

  • Enable parallel test execution with pytest-xdist

Breaking changes

  • Fixture testcontainers_docker_image now returns an image_id as a str instead of docker.models.images.Image instance.

Full Changelog: 0.13.0...0.13.1

0.13.0

18 Dec 08:37
49ff436
Compare
Choose a tag to compare

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

26 Nov 13:32
440b6db
Compare
Choose a tag to compare

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

Changes

  • DockerContainer - logs forwarded from the Testcontainers will exclude timestamps
    to make it easier to read the logs - log lines will be shorter.
  • DockerContainer - removed testconatiners- prefix from the container name
    to make it easier to read the logs - log lines will be shorter.

What's Changed

Full Changelog: 0.11.0...0.12.0

0.11.0

19 Nov 17:46
56a5fcd
Compare
Choose a tag to compare

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 and AWS_SECRET_ACCESS_KEY environment variables on LocalStack container.

What's Changed

Full Changelog: 0.10.4...0.11.0

0.10.4

17 Nov 09:04
521da82
Compare
Choose a tag to compare

0.10.4 (2023-11-17)

New features

  • LocalStackContainer - updated base image to localstack/localstack:3
  • PostgreSQLContainer - updated base image to postgres:16

Bug fixes

  • DockerContainer: remove container if startup failed instead of leaving it in stopped state.
  • MySQLContainer: add cryptography as an extra dependency. Required for pymysql.

What's Changed

Full Changelog: 0.10.3...0.10.4

0.10.3

15 Nov 14:08
9e2fe2b
Compare
Choose a tag to compare

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

08 Nov 19:55
d6b6e48
Compare
Choose a tag to compare

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