Skip to content

Commit 0217de4

Browse files
committed
Polish "Improve handling of non-standard status codes in RestTemplate metrics"
See gh-17991
1 parent 1acff41 commit 0217de4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/web/client/RestTemplateExchangeTagsTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ void outcomeTagIsUnknownForCustomResponseStatus() throws Exception {
9595
}
9696

9797
@Test
98-
void outcomeTagIsClientErrorWhenResponseIsNonStandardInKnownSeries() throws IOException {
98+
void outcomeTagIsClientErrorWhenResponseIsNonStandardInClientSeries() throws IOException {
9999
ClientHttpResponse response = mock(ClientHttpResponse.class);
100100
given(response.getRawStatusCode()).willReturn(490);
101101
Tag tag = RestTemplateExchangeTags.outcome(response);

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/web/reactive/client/WebClientExchangeTagsTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ void outcomeTagIsServerErrorWhenResponseIs5xx() {
148148
}
149149

150150
@Test
151-
void outcomeTagIsClientErrorWhenResponseIsNonStandardInKnownSeries() {
151+
void outcomeTagIsClientErrorWhenResponseIsNonStandardInClientSeries() {
152152
given(this.response.rawStatusCode()).willReturn(490);
153153
Tag tag = WebClientExchangeTags.outcome(this.response);
154154
assertThat(tag.getValue()).isEqualTo("CLIENT_ERROR");

0 commit comments

Comments
 (0)