-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Hi There,
I see java doc of the following method says, it is supposed to be "get an instance of a database container given its JDBC URL"
static JdbcDatabaseContainer getContainer(String jdbcUrl)
However it is pacakge private one.
In an IT we appoint the ContainerDatabaseDriver as jdbc driver class and use flyway to migrate the test data into a postgres db running as docker container. However I need to call my deployed rest services under a jboss instance, which in turn runs as an additional docker container.
I have to pass/replace the database port in the JNDI connection for jboss datasource.
However, the ContainerDatabaseDriver is not subclassing the GenericContainer and there is no way to get the mapped ports for internally created postgres container.
The only option I can imagine is to extract the the corresponding JdbcDatabaseContainer and then find out the mapped ports.
Please advice
Thanks in advance
Reza