Polish "Improve handling of non-standard status codes in RestTemplate metrics"
See gh-17991
This commit is contained in:
parent
1acff410a2
commit
0217de4349
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue