Skip to content

Commit

Permalink
Don't use deprecared quarkus.health.extensions.enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
vmuzikar committed Aug 30, 2024
1 parent 02a08cb commit 4131193
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ private HealthPropertyMappers(){}
public static PropertyMapper<?>[] getHealthPropertyMappers() {
return new PropertyMapper[] {
fromOption(HealthOptions.HEALTH_ENABLED)
.to("quarkus.health.extensions.enabled")
.to("quarkus.smallrye-health.extensions.enabled")
.paramLabel(Boolean.TRUE + "|" + Boolean.FALSE)
.build()
};
Expand Down
2 changes: 1 addition & 1 deletion quarkus/runtime/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ quarkus.application.name=Keycloak
quarkus.banner.enabled=false

# Disable health checks from extensions, since we provide our own (default is true)
quarkus.health.extensions.enabled=false
quarkus.smallrye-health.extensions.enabled=false

# Enables metrics from other extensions if metrics is enabled
quarkus.datasource.metrics.enabled=${quarkus.micrometer.enabled:false}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -417,10 +417,10 @@ public void testTransactionTypeChangesDriver() {
public void testResolveHealthOption() {
ConfigArgsConfigSource.setCliArgs("--health-enabled=true");
SmallRyeConfig config = createConfig();
assertEquals("true", config.getConfigValue("quarkus.health.extensions.enabled").getValue());
assertEquals("true", config.getConfigValue("quarkus.smallrye-health.extensions.enabled").getValue());
ConfigArgsConfigSource.setCliArgs("");
config = createConfig();
assertEquals("false", config.getConfigValue("quarkus.health.extensions.enabled").getValue());
assertEquals("false", config.getConfigValue("quarkus.smallrye-health.extensions.enabled").getValue());
}

@Test
Expand Down

0 comments on commit 4131193

Please sign in to comment.