Polish "Improve handling of non-standard status codes in RestTemplate metrics"
See gh-17991
This commit is contained in:
@@ -95,7 +95,7 @@ class RestTemplateExchangeTagsTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
void outcomeTagIsClientErrorWhenResponseIsNonStandardInKnownSeries() throws IOException {
|
||||
void outcomeTagIsClientErrorWhenResponseIsNonStandardInClientSeries() throws IOException {
|
||||
ClientHttpResponse response = mock(ClientHttpResponse.class);
|
||||
given(response.getRawStatusCode()).willReturn(490);
|
||||
Tag tag = RestTemplateExchangeTags.outcome(response);
|
||||
|
||||
@@ -148,7 +148,7 @@ class WebClientExchangeTagsTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
void outcomeTagIsClientErrorWhenResponseIsNonStandardInKnownSeries() {
|
||||
void outcomeTagIsClientErrorWhenResponseIsNonStandardInClientSeries() {
|
||||
given(this.response.rawStatusCode()).willReturn(490);
|
||||
Tag tag = WebClientExchangeTags.outcome(this.response);
|
||||
assertThat(tag.getValue()).isEqualTo("CLIENT_ERROR");
|
||||
|
||||
Reference in New Issue
Block a user