-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Datasource-related refactorings of tests (and some utils) #43537
Conversation
/cc @gsmet (hibernate-orm) |
Also, sorry. Yes it's a lot of tests, but there are so many edge cases, it's a nightmare. |
🎊 PR Preview 60a9780 has been successfully built and deployed to https://quarkus-pr-main-43537-preview.surge.sh/version/main/guides/
|
Status for workflow
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I spotted a few very minor things. I let you decide if you want to fix them in this PR or in the follow-up. I don't mind either way.
...ent/src/main/java/io/quarkus/reactive/datasource/deployment/ReactiveDataSourceBuildUtil.java
Show resolved
Hide resolved
...ment/src/main/java/io/quarkus/reactive/db2/client/deployment/ReactiveDB2ClientProcessor.java
Show resolved
Hide resolved
...ons/liquibase/runtime/src/main/java/io/quarkus/liquibase/runtime/LiquibaseRuntimeConfig.java
Outdated
Show resolved
Hide resolved
f1aad67
to
8015540
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review. I addressed all comments, let's merge once CI agrees.
I forgot about Hibernate Reactive... pushing an update to align it on Hibernate ORM. |
So that we can use these more broadly in the future.
So that further changes are shorter. This is only a refactoring and doesn't change the test expectations.
8015540
to
9ead861
Compare
This comment has been minimized.
This comment has been minimized.
To be completely sure of what we'll change exactly in further changes. This is only a refactoring and doesn't change existing test expectations (though it adds some). "Empty config" actually means "missing JDBC/reactive URL". Testing what happens when named datasources are not defined at build time, in particular, is beside the point. For health checks, it's just that some configurations were not being tested, and the next commits may affect the behavior.
9ead861
to
2633fb6
Compare
Status for workflow
|
This is a pre-requisite for #41929, but is only refactorings and addition of more tests, without changing the behavior of Quarkus.
So, I thought it would be best to merge it separately, before #41929. It won't be a waste anyway, as it clarifies some surprising behavior -- which I intend to fix in #41929 -- in the Flyway/Liquibase extensions, as well as reactive clients (see #43517).