Merge branch '3.0.x'
Closes gh-34936
This commit is contained in:
@@ -181,7 +181,7 @@ public class LiquibaseAutoConfiguration {
|
||||
|
||||
@Override
|
||||
public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
|
||||
hints.resources().registerPattern("db/changelog/db.changelog-master.yaml");
|
||||
hints.resources().registerPattern("db/changelog/*");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -463,8 +463,10 @@ class LiquibaseAutoConfigurationTests {
|
||||
void shouldRegisterHints() {
|
||||
RuntimeHints hints = new RuntimeHints();
|
||||
new LiquibaseAutoConfigurationRuntimeHints().registerHints(hints, getClass().getClassLoader());
|
||||
assertThat(RuntimeHintsPredicates.resource().forResource("db/changelog/")).accepts(hints);
|
||||
assertThat(RuntimeHintsPredicates.resource().forResource("db/changelog/db.changelog-master.yaml"))
|
||||
.accepts(hints);
|
||||
assertThat(RuntimeHintsPredicates.resource().forResource("db/changelog/tables/init.sql")).accepts(hints);
|
||||
}
|
||||
|
||||
private ContextConsumer<AssertableApplicationContext> assertLiquibase(Consumer<SpringLiquibase> consumer) {
|
||||
|
||||
Reference in New Issue
Block a user