"spring.datasource.url=" + database.getJdbcUrl() + "?currentSchema=itest",
This assumes that the URL does not contain ? already. Try replacing ? with &, because, in 1.12.0, we set some query parameters already:
https://github.com/testcontainers/testcontainers-java/blob/2d11d80034c47f6d6538e036e77f50c0ede98018/modules/postgresql/src/main/java/org/testcontainers/containers/PostgreSQLContainer.java#L62
Thanks; that works. Please in the future document such changes.
we only document changes that affect the public API and/or the behaviour.
It is recommended to use the URL parsing libraries to avoid issues like that one, we only guarantee that the returned string will be an URL, and it is valid to have pre-set query parameters in URLs
Most helpful comment
we only document changes that affect the public API and/or the behaviour.
It is recommended to use the URL parsing libraries to avoid issues like that one, we only guarantee that the returned string will be an URL, and it is valid to have pre-set query parameters in URLs