Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
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
openSource
spring-cloud-netflix
Commits
16e827f3
Unverified
Commit
16e827f3
authored
May 27, 2016
by
Spencer Gibb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'daniellavoie-fix-unit-test'
parents
4a1e637b
4fd36592
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
RestTemplateRetryTest.java
...ork/cloud/netflix/resttemplate/RestTemplateRetryTest.java
+3
-7
application.yml
spring-cloud-netflix-core/src/test/resources/application.yml
+4
-0
No files found.
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/resttemplate/RestTemplateRetryTest.java
View file @
16e827f3
...
...
@@ -12,15 +12,14 @@ import org.junit.runner.RunWith;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.test.IntegrationTest
;
import
org.springframework.boot.test.SpringApplicationConfiguration
;
import
org.springframework.boot.test.WebIntegrationTest
;
import
org.springframework.cloud.client.loadbalancer.LoadBalanced
;
import
org.springframework.cloud.netflix.ribbon.RibbonClient
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.test.annotation.DirtiesContext
;
import
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
;
import
org.springframework.test.context.web.WebAppConfiguration
;
import
org.springframework.util.Assert
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
...
...
@@ -43,13 +42,10 @@ import com.netflix.niws.client.http.HttpClientLoadBalancerErrorHandler;
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@SpringApplicationConfiguration
(
classes
=
RestTemplateRetryTest
.
Application
.
class
)
@WebAppConfiguration
@IntegrationTest
({
"server.port=0"
,
@WebIntegrationTest
(
randomPort
=
true
,
value
=
{
"spring.application.name=resttemplatetest"
,
"logging.level.org.springframework.cloud.netflix.resttemplate=DEBUG"
,
"badClients.ribbon.MaxAutoRetries=0"
,
"badClients.ribbon.ReadTimeout=200"
,
"badClients.ribbon.MaxAutoRetriesNextServer=10"
,
"badClients.ribbon.MaxAutoRetries=0"
,
"badClients.ribbon.OkToRetryOnAllOperations=true"
,
"ribbon.http.client.enabled"
})
@DirtiesContext
public
class
RestTemplateRetryTest
{
...
...
spring-cloud-netflix-core/src/test/resources/application.yml
View file @
16e827f3
...
...
@@ -26,6 +26,10 @@ foo:
ribbon
:
ConnectTimeout
:
7
ReadTimeout
:
17
badClients
:
ribbon
:
MaxAutoRetriesNextServer
:
10
ReadTimeout
:
200
management
:
context-path
:
/admin
endpoints
:
...
...
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