[CST-5288] Disabled solr oai core health indicator during tests

This commit is contained in:
Luca Giamminonni
2022-03-25 13:08:15 +01:00
parent a24f75cc08
commit bf7ef19322
2 changed files with 2 additions and 1 deletions

View File

@@ -144,3 +144,5 @@ authentication-ip.Student = 6.6.6.6
useProxies = true
proxies.trusted.ipranges = 7.7.7.7
proxies.trusted.include_ui_ip = true
management.health.solrOai.enabled = false

View File

@@ -65,7 +65,6 @@ public class HealthIndicatorsIT extends AbstractControllerIntegrationTest {
.andExpect(jsonPath("$.components", allOf(
matchDatabase(Status.UP),
match("solrSearchCore", Status.UP, Map.of("status", 0, "detectedPathType", "root")),
match("solrOaiCore", Status.UP, Map.of("status", 0, "detectedPathType", "particular core")),
match("solrStatisticsCore", Status.UP, Map.of("status", 0, "detectedPathType", "root")),
match("geoIp", UP_WITH_ISSUES_STATUS,
Map.of("reason", "The required 'dbfile' configuration is missing in solr-statistics.cfg!"))