|
24 | 24 | import reactor.core.publisher.Mono;
|
25 | 25 |
|
26 | 26 | import org.springframework.boot.actuate.autoconfigure.endpoint.EndpointAutoConfiguration;
|
27 |
| -import org.springframework.boot.actuate.autoconfigure.endpoint.condition.WithTestEndpointOutcomeExposureContributor; |
28 | 27 | import org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointAutoConfiguration;
|
29 | 28 | import org.springframework.boot.actuate.autoconfigure.health.HealthEndpointConfiguration.HealthEndpointGroupMembershipValidator.NoSuchHealthContributorException;
|
30 |
| -import org.springframework.boot.actuate.autoconfigure.health.HealthEndpointReactiveWebExtensionConfiguration.WebFluxAdditionalHealthEndpointPathsConfiguration; |
31 | 29 | import org.springframework.boot.actuate.endpoint.ApiVersion;
|
32 | 30 | import org.springframework.boot.actuate.endpoint.SecurityContext;
|
33 | 31 | import org.springframework.boot.actuate.endpoint.web.WebEndpointResponse;
|
34 |
| -import org.springframework.boot.actuate.endpoint.web.WebEndpointsSupplier; |
35 | 32 | import org.springframework.boot.actuate.endpoint.web.WebServerNamespace;
|
36 | 33 | import org.springframework.boot.actuate.health.CompositeHealthContributor;
|
37 | 34 | import org.springframework.boot.actuate.health.DefaultHealthContributorRegistry;
|
@@ -340,23 +337,6 @@ void runWithReactiveContextAndIndicatorsInParentContextFindsIndicators() {
|
340 | 337 | }));
|
341 | 338 | }
|
342 | 339 |
|
343 |
| - @Test |
344 |
| - @WithTestEndpointOutcomeExposureContributor |
345 |
| - void additionalReactiveHealthEndpointsPathsTolerateHealthEndpointThatIsNotWebExposed() { |
346 |
| - this.reactiveContextRunner |
347 |
| - .withConfiguration( |
348 |
| - AutoConfigurations.of(EndpointAutoConfiguration.class, WebEndpointAutoConfiguration.class)) |
349 |
| - .withPropertyValues("management.endpoints.web.exposure.exclude=*", |
350 |
| - "management.endpoints.test.exposure.include=*") |
351 |
| - .run((context) -> { |
352 |
| - assertThat(context).hasNotFailed(); |
353 |
| - assertThat(context).hasSingleBean(HealthEndpoint.class); |
354 |
| - assertThat(context).hasSingleBean(ReactiveHealthEndpointWebExtension.class); |
355 |
| - assertThat(context.getBean(WebEndpointsSupplier.class).getEndpoints()).isEmpty(); |
356 |
| - assertThat(context).hasSingleBean(WebFluxAdditionalHealthEndpointPathsConfiguration.class); |
357 |
| - }); |
358 |
| - } |
359 |
| - |
360 | 340 | @Configuration(proxyBeanMethods = false)
|
361 | 341 | static class HealthIndicatorsConfiguration {
|
362 | 342 |
|
|
0 commit comments