You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a few tests that rely on the behavior of a EndpointExposureOutcomeContributor contribution. We do have one for CloudFoundry so we're reusing that behavior.
However, this leads to a few tests to expose cloudfoundry concerns where they shouldn't, really.
The text was updated successfully, but these errors were encountered:
This avoids relying on Cloud Foundry exposure logic in
HealthEndpointAutoConfigurationTests.
See spring-projectsgh-45721
Signed-off-by: Daeho Kwon <[email protected]>
The first one is pretty straightforward. It is based on CustomEndpointExposureOutcomeContributor, which is registered via test/resources/META-INF/spring.factories.
The second one also uses CustomEndpointExposureOutcomeContributor, but it is registered with @WithResource. However, it requires additional changes to OnAvailableEndpointCondition, such as passing ConditionContext.getClassLoader() as a parameter to SpringFactoriesLoader.forDefaultResourceLocation().
We have a few tests that rely on the behavior of a
EndpointExposureOutcomeContributor
contribution. We do have one for CloudFoundry so we're reusing that behavior.However, this leads to a few tests to expose cloudfoundry concerns where they shouldn't, really.
The text was updated successfully, but these errors were encountered: