[Bug]: setImage/getImage backward-incompatible change after 1dba8d12a8f8900f07d7ef97689aa247e61260fc #7819
Closed
Description
opened on Nov 17, 2023
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