Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Container from DB URL r2dbc:tc: not working #13

Open
pontus-eliason opened this issue Oct 10, 2023 · 0 comments
Open

Test Container from DB URL r2dbc:tc: not working #13

pontus-eliason opened this issue Oct 10, 2023 · 0 comments

Comments

@pontus-eliason
Copy link

pontus-eliason commented Oct 10, 2023

When using test containers and the path to the database is specified using the spring.r2dbc.url property using the format of r2dbc:tc:postgresql:///database a database container will be automatically created.

The problem is that this project does not recognize this format and does not properly replace the parts of the database url from r2dbc to jdbc, or figure out the actual host and address of the container running the database.

See TestContainer documentation for how this works using Spring Boot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant