/spring-cloud-sleuth-1795-example

spring-cloud-sleuth issue #1795 example

Primary LanguageJava

Bug example for spring-cloud/spring-cloud-sleuth#1795

Test scenario Expected Actual Pass
Conditional Bean/Sleuth Enabled Find 1 ClientInterceptor Finds 0 ClientInterceptors No
Conditional Bean/Sleuth Disabled Find 0 ClientInterceptors Finds 0 ClientInterceptors Yes
Optional Injection/Sleuth Enabled Find 1 ClientInterceptor Finds 1 ClientInterceptor Yes
Optional Injection/Sleuth Disabled Find 0 ClientInterceptors Finds 0 ClientInterceptors Yes
Unconditional Bean/Sleuth Enabled Find 1 ClientInterceptor Finds 1 ClientInterceptor Application behaves ok, test fails
Unconditional Bean/Sleuth Disabled Throw because of missing bean Throw because of missing bean Yes

Check GrpcConfigurationTest for automated tests to prove the above.