Spring-boot: Allow to use TestContainers with @AutoConfigureTestDatabase

Created on 17 Nov 2019  路  2Comments  路  Source: spring-projects/spring-boot

Follow-up of this limitation reported on SO, it would be nice if users were able to configure the URL that @AutoConfigureTestDatabase uses. Right now if they want a specific dialect or any other extra parameter, they have to switch off our support to configure things manually.

pending-design-work enhancement

Most helpful comment

We've spent some time discussing this feature and we're willing to investigate a support of testcontainers rather which would provide all the necessary flexibility.

All 2 comments

We've spent some time discussing this feature and we're willing to investigate a support of testcontainers rather which would provide all the necessary flexibility.

Now that we have r2dbc support, we should also take that use case into account so that the ConectionFactory points to a database replaced via this mechanism.

Was this page helpful?
0 / 5 - 0 ratings