|
|
@ -44,26 +44,26 @@ public class CloudFoundryReactiveHealthEndpointWebExtensionTests {
|
|
|
|
|
|
|
|
|
|
|
|
private ReactiveWebApplicationContextRunner contextRunner = new ReactiveWebApplicationContextRunner()
|
|
|
|
private ReactiveWebApplicationContextRunner contextRunner = new ReactiveWebApplicationContextRunner()
|
|
|
|
.withPropertyValues("VCAP_APPLICATION={}")
|
|
|
|
.withPropertyValues("VCAP_APPLICATION={}")
|
|
|
|
.withConfiguration(
|
|
|
|
.withConfiguration(AutoConfigurations.of(
|
|
|
|
AutoConfigurations.of(ReactiveSecurityAutoConfiguration.class,
|
|
|
|
ReactiveSecurityAutoConfiguration.class,
|
|
|
|
ReactiveUserDetailsServiceAutoConfiguration.class,
|
|
|
|
ReactiveUserDetailsServiceAutoConfiguration.class,
|
|
|
|
WebFluxAutoConfiguration.class, JacksonAutoConfiguration.class,
|
|
|
|
WebFluxAutoConfiguration.class, JacksonAutoConfiguration.class,
|
|
|
|
HttpMessageConvertersAutoConfiguration.class,
|
|
|
|
HttpMessageConvertersAutoConfiguration.class,
|
|
|
|
PropertyPlaceholderAutoConfiguration.class,
|
|
|
|
PropertyPlaceholderAutoConfiguration.class,
|
|
|
|
ReactiveCloudFoundryActuatorAutoConfigurationTests.WebClientCustomizerConfig.class,
|
|
|
|
ReactiveCloudFoundryActuatorAutoConfigurationTests.WebClientCustomizerConfig.class,
|
|
|
|
WebClientAutoConfiguration.class, ManagementContextAutoConfiguration.class,
|
|
|
|
WebClientAutoConfiguration.class,
|
|
|
|
|
|
|
|
ManagementContextAutoConfiguration.class,
|
|
|
|
EndpointAutoConfiguration.class, WebEndpointAutoConfiguration.class,
|
|
|
|
EndpointAutoConfiguration.class, WebEndpointAutoConfiguration.class,
|
|
|
|
HealthIndicatorAutoConfiguration.class, HealthEndpointAutoConfiguration.class,
|
|
|
|
HealthIndicatorAutoConfiguration.class,
|
|
|
|
|
|
|
|
HealthEndpointAutoConfiguration.class,
|
|
|
|
ReactiveCloudFoundryActuatorAutoConfiguration.class));
|
|
|
|
ReactiveCloudFoundryActuatorAutoConfiguration.class));
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
public void healthDetailsAlwaysPresent() {
|
|
|
|
public void healthDetailsAlwaysPresent() {
|
|
|
|
this.contextRunner
|
|
|
|
this.contextRunner.run((context) -> {
|
|
|
|
.run((context) -> {
|
|
|
|
|
|
|
|
CloudFoundryReactiveHealthEndpointWebExtension extension = context
|
|
|
|
CloudFoundryReactiveHealthEndpointWebExtension extension = context
|
|
|
|
.getBean(CloudFoundryReactiveHealthEndpointWebExtension.class);
|
|
|
|
.getBean(CloudFoundryReactiveHealthEndpointWebExtension.class);
|
|
|
|
assertThat(extension.health().block().getBody().getDetails())
|
|
|
|
assertThat(extension.health().block().getBody().getDetails()).isNotEmpty();
|
|
|
|
.isNotEmpty();
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|