Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
0217de43
Commit
0217de43
authored
Aug 29, 2019
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish "Improve handling of non-standard status codes in RestTemplate metrics"
See gh-17991
parent
1acff410
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
RestTemplateExchangeTagsTests.java
...ate/metrics/web/client/RestTemplateExchangeTagsTests.java
+1
-1
WebClientExchangeTagsTests.java
...trics/web/reactive/client/WebClientExchangeTagsTests.java
+1
-1
No files found.
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/web/client/RestTemplateExchangeTagsTests.java
View file @
0217de43
...
...
@@ -95,7 +95,7 @@ class RestTemplateExchangeTagsTests {
}
@Test
void
outcomeTagIsClientErrorWhenResponseIsNonStandardIn
Known
Series
()
throws
IOException
{
void
outcomeTagIsClientErrorWhenResponseIsNonStandardIn
Client
Series
()
throws
IOException
{
ClientHttpResponse
response
=
mock
(
ClientHttpResponse
.
class
);
given
(
response
.
getRawStatusCode
()).
willReturn
(
490
);
Tag
tag
=
RestTemplateExchangeTags
.
outcome
(
response
);
...
...
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/web/reactive/client/WebClientExchangeTagsTests.java
View file @
0217de43
...
...
@@ -148,7 +148,7 @@ class WebClientExchangeTagsTests {
}
@Test
void
outcomeTagIsClientErrorWhenResponseIsNonStandardIn
Known
Series
()
{
void
outcomeTagIsClientErrorWhenResponseIsNonStandardIn
Client
Series
()
{
given
(
this
.
response
.
rawStatusCode
()).
willReturn
(
490
);
Tag
tag
=
WebClientExchangeTags
.
outcome
(
this
.
response
);
assertThat
(
tag
.
getValue
()).
isEqualTo
(
"CLIENT_ERROR"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment