Skip to content

Releases: filipsnastins/tomodachi-testcontainers

1.2.3

19 Oct 12:40
d92b784
Compare
Choose a tag to compare

Maintenance

1.2.2

16 Jul 08:47
aabb392
Compare
Choose a tag to compare

Maintenance

  • Development scripts moved from the Poetry scripts to Makefile.
    Unnecessary development scripts are no longer packaged as part of the library.
  • Dependency updates.
  • Extended pylint config and added pydocstringformatter linter.

1.2.1

14 May 14:46
764b6d6
Compare
Choose a tag to compare

Maintenance

1.2.0

14 May 14:40
808087f
Compare
Choose a tag to compare

New features

  • (#305) Adds <CONTAINER-NAME>_TESTCONTAINER_DISABLE_LOGGING environment variable to selectively disable logging capture and forwarding for specific containers. The use case is that some containers, like Moto, output logs that are not immediately useful for debugging. Example usage: MOTO_TESTCONTAINER_DISABLE_LOGGING=1.

1.1.3

06 May 11:12
49825af
Compare
Choose a tag to compare

Maintenance

  • Bump pytest-asyncio to 0.21.2 to resolve the compatibility issue with pytest 8.2.0.

1.1.2

09 Mar 10:19
cc854e9
Compare
Choose a tag to compare

Maintenance

1.1.1

29 Feb 12:56
84db40c
Compare
Choose a tag to compare

New features

  • (#234) clients.SNSSQSTestClient: adds support of SQS messaging introduced in tomodachi 0.27.

1.1.0

25 Jan 08:25
f01a287
Compare
Choose a tag to compare

New features

  • (#180) clients.SNSSQSTestClient: SNSSQSTestClient.receive now returns message attributes.
    The returned message is now wrapped in a SQSMessage dataclass, containing the payload and message_attributes fields.
    It's a small breaking change for clients that use the receive method, because the message's payload is now wrapped in the payload attribute.

1.0.1

23 Jan 07:34
ad191da
Compare
Choose a tag to compare

Fixes

  • (#179) WireMockContainer: fixed mapping_stubs and mapping_files argument precedence over environment variables.

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