Skip to content

[Bug]: setImage/getImage backward-incompatible change after 1dba8d12a8f8900f07d7ef97689aa247e61260fc #7819

Closed
@wendigo

Description

Module

Core

Testcontainers version

1.19.2

Using the latest Testcontainers version?

Yes

Host OS

Mac

Host Arch

ARM

Docker version

Doesn't matter

What happened?

1dba8d1 introduced backward-incompatible change.

When calling GenericContainer.setImage(), consecutive GenericContainer.getImage() call will return the initial image passed to the constructor, rather then the value passed to the setImage call.

This is due to the fact that setImage sets image on the containerDef, while getImage() only inspects image field without checking containerDef.

Relevant log output

No response

Additional Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions