testcontainers / testcontainers-java

Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
https://testcontainers.org
MIT License
7.99k stars 1.64k forks source link

[Enhancement]: Support for quarkus-hibernate-reactive-panache #9249

Open cobar79 opened 1 week ago

cobar79 commented 1 week ago

Module

Core

Proposal

Currently the Postgres container I was using with the standard quarkus-jdbc-postgresql dependency can't be upgraded to the quarkus-hibernate-reactive-panache framework since the Postgres container only supports JDBC connections.

Purpose enhancement to provide support for Vert.x Drivers.

kiview commented 1 week ago

Hi @cobar79 , can you please elaborate a bit? How do you connect using a Vert.x driver? While the PostgreSQL module only supports a shorthand method for constructing the JDBC URL, you can connect to it using any kind of driver, just manually constructing the connection string, as you would for any other container.

cobar79 commented 3 hours ago

In the test life cycle in the start override, I replaced the jdbc connection with the vertex connection string. With the jdbc connection, the reactive panache hibernate repo failed. With the vertical connection also failed. For now I reverted back to hibernate-orm