|
|
|
@ -62,6 +62,17 @@ class LiquibaseEndpointTests {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
void liquibaseReportIsReturnedForContextHierarchy() {
|
|
|
|
|
this.contextRunner.withUserConfiguration().run((parent) -> {
|
|
|
|
|
this.contextRunner.withUserConfiguration(Config.class).withParent(parent).run((context) -> {
|
|
|
|
|
Map<String, LiquibaseBean> liquibaseBeans = context.getBean(LiquibaseEndpoint.class).liquibaseBeans()
|
|
|
|
|
.getContexts().get(parent.getId()).getLiquibaseBeans();
|
|
|
|
|
assertThat(liquibaseBeans.get("liquibase").getChangeSets()).hasSize(1);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
void invokeWithCustomSchema() {
|
|
|
|
|
this.contextRunner.withUserConfiguration(Config.class)
|
|
|
|
|