@ContextConfiguration(classes=WebClientTests.TestConfiguration.class) @TestPropertySource(properties={"spring.sleuth.web.servlet.enabled=false","spring.application.name=fooservice","spring.sleuth.web.client.skip-pattern=/skip.*"}) @DirtiesContext public abstract class WebClientTests extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WebClientTests.FooController |
static class |
WebClientTests.SimpleLoadBalancerClientConfiguration |
static class |
WebClientTests.TestConfiguration |
static class |
WebClientTests.TestErrorController |
static interface |
WebClientTests.TestFeignInterface |
static class |
WebClientTests.WebClientController |
| Constructor and Description |
|---|
WebClientTests() |
@AfterEach @BeforeEach public void close()
@BeforeEach public void setup()
@ParameterizedTest @MethodSource(value="parametersForShouldCreateANewSpanWithClientSideTagsWhenNoPreviousTracingWasPresent") public void shouldCreateANewSpanWithClientSideTagsWhenNoPreviousTracingWasPresent(org.springframework.cloud.sleuth.instrument.web.client.integration.sampled.WebClientTests.ResponseEntityProvider provider)
protected String pathKey()
@ParameterizedTest @MethodSource(value="parametersForShouldAttachTraceIdWhenCallingAnotherService") public void shouldAttachTraceIdWhenCallingAnotherService(org.springframework.cloud.sleuth.instrument.web.client.integration.sampled.WebClientTests.ResponseEntityProvider provider)
@Test public void shouldAttachTraceIdWhenCallingAnotherServiceViaWebClient()
@Test public void shouldWorkWhenCustomStatusCodeIsReturned()
@Test public void shouldUseUriTemplateInSpanName()
protected String templatedName()
@Test @Disabled(value="flakey") public void shouldNotTagOnCancel()
Subscription.request(long) means a network request was never
sent@Test public void shouldRespectSkipPattern()
@ParameterizedTest @MethodSource(value="parametersForShouldAttachTraceIdWhenUsingFeignClientWithoutResponseBody") public void shouldAttachTraceIdWhenUsingFeignClientWithoutResponseBody(org.springframework.cloud.sleuth.instrument.web.client.integration.sampled.WebClientTests.ResponseEntityProvider provider)
@Test public void shouldCloseSpanWhenErrorControllerGetsCalled()
@Test public void shouldNotExecuteErrorControllerWhenUrlIsFound()
@Test public void should_wrap_rest_template_builders()
@Test public void should_add_headers_eagerly()
Copyright © 2023 Pivotal Software, Inc.. All rights reserved.