-
Notifications
You must be signed in to change notification settings - Fork 40.2k
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
Configure @DataJpaTest's Embedded Datasource URL #10271
Comments
There is |
Of course, right after posting this I discovered this (in
So... feel free to close this ticket as "won't fix" - thanks for considering it! |
There's that, right. I wouldn't use |
This is a "quality of life" request...
Here's my use case: I want my app configured for Postgres, but I want to run
@DataJpaTest
tests against HSQLDB using Postgres compatibility mode. I've figured out how to do this by annotating my tests like soAnd adding the following to
src/test/resources/application.properties
:The important tidbit is the
;sql.syntax_pgs=true
which turns on Postgres compatibility mode.I would prefer to not have to add
@AutoConfigureTestDatabase(replace = AutoConfigureTestDatabase.Replace.NONE)
to every test or to make a custom annotation, and instead, would like a property that allows me to tweak my embedded test database's connection url, for examplespring.test.datasource.url=jdbc:hsqldb:mem:%s;sql.syntax_pgs=true
Thanks!
The text was updated successfully, but these errors were encountered: