Polish gh-45721
See gh-46001 Signed-off-by: Johnny Lim <izeye@naver.com>
This commit is contained in:
parent
8893f4c18b
commit
c6ba46c120
|
@ -55,9 +55,7 @@ import org.springframework.boot.actuate.health.Status;
|
||||||
import org.springframework.boot.actuate.health.StatusAggregator;
|
import org.springframework.boot.actuate.health.StatusAggregator;
|
||||||
import org.springframework.boot.actuate.health.SystemHealth;
|
import org.springframework.boot.actuate.health.SystemHealth;
|
||||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
|
import org.springframework.boot.autoconfigure.AutoConfigurations;
|
||||||
import org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener;
|
|
||||||
import org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration;
|
import org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration;
|
||||||
import org.springframework.boot.logging.LogLevel;
|
|
||||||
import org.springframework.boot.test.context.FilteredClassLoader;
|
import org.springframework.boot.test.context.FilteredClassLoader;
|
||||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
||||||
import org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner;
|
import org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner;
|
||||||
|
@ -371,7 +369,6 @@ class HealthEndpointAutoConfigurationTests {
|
||||||
AutoConfigurations.of(EndpointAutoConfiguration.class, WebEndpointAutoConfiguration.class))
|
AutoConfigurations.of(EndpointAutoConfiguration.class, WebEndpointAutoConfiguration.class))
|
||||||
.withClassLoader(
|
.withClassLoader(
|
||||||
new FilteredClassLoader(Thread.currentThread().getContextClassLoader(), DispatcherServlet.class))
|
new FilteredClassLoader(Thread.currentThread().getContextClassLoader(), DispatcherServlet.class))
|
||||||
.withInitializer(ConditionEvaluationReportLoggingListener.forLogLevel(LogLevel.INFO))
|
|
||||||
.withPropertyValues("management.endpoints.web.exposure.exclude=*",
|
.withPropertyValues("management.endpoints.web.exposure.exclude=*",
|
||||||
"management.endpoints.test.exposure.include=*")
|
"management.endpoints.test.exposure.include=*")
|
||||||
.run((context) -> {
|
.run((context) -> {
|
||||||
|
@ -523,9 +520,4 @@ class HealthEndpointAutoConfigurationTests {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Configuration(proxyBeanMethods = false)
|
|
||||||
static class UnconditionalHealthEndpointWebExtensionConfiguration extends HealthEndpointWebExtensionConfiguration {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue