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
The excludefoo_endpoint_should_not_contain_foo_indicators test fails with spring-boot 2.6.2. If you change the application to use spring boot 2.5.8, the test will pass.
The application defines a composite health contributor named foo as follows:
philwebb
changed the title
Unable to exclude composite health contributor by the composite name
Health contributor exclusion rules aren't applied to child contributors
Jan 4, 2022
Excluding a composite health contributor by the composite name no longer works in spring boot 2.6. It worked previously in spring boot 2.5.
Potentially caused by #23027
Here is an example application, with a failing unit test... health-group-composite-test.zip
The
excludefoo_endpoint_should_not_contain_foo_indicators
test fails with spring-boot 2.6.2. If you change the application to use spring boot 2.5.8, the test will pass.The application defines a composite health contributor named
foo
as follows:And then creates a health group named
exclude-foo
that excludes that contributor:With spring boot 2.5.8, the exclude-foo group endpoint does not show the foo indicators (as expected)...
With spring boot 2.6.2, the exclude-foo group endpoint shows the foo indicators (unexpected)...
The text was updated successfully, but these errors were encountered: