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
b5185fbe
Commit
b5185fbe
authored
May 15, 2018
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade to Lettuce 5.1.0.M1
Closes gh-13181
parent
148997fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
RedisAutoConfigurationTests.java
...autoconfigure/data/redis/RedisAutoConfigurationTests.java
+12
-3
pom.xml
spring-boot-project/spring-boot-dependencies/pom.xml
+1
-1
No files found.
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/redis/RedisAutoConfigurationTests.java
View file @
b5185fbe
...
...
@@ -28,6 +28,7 @@ import org.springframework.boot.autoconfigure.AutoConfigurations;
import
org.springframework.boot.test.context.runner.ApplicationContextRunner
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.data.redis.connection.RedisClusterConfiguration
;
import
org.springframework.data.redis.connection.RedisNode
;
import
org.springframework.data.redis.connection.lettuce.LettuceClientConfiguration.LettuceClientConfigurationBuilder
;
import
org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory
;
...
...
@@ -231,9 +232,17 @@ public class RedisAutoConfigurationTests {
.
withPropertyValues
(
"spring.redis.cluster.nodes[0]:"
+
clusterNodes
.
get
(
0
),
"spring.redis.cluster.nodes[1]:"
+
clusterNodes
.
get
(
1
))
.
run
((
context
)
->
assertThat
(
context
.
getBean
(
LettuceConnectionFactory
.
class
).
getClusterConnection
())
.
isNotNull
());
.
run
((
context
)
->
{
RedisClusterConfiguration
clusterConfiguration
=
context
.
getBean
(
LettuceConnectionFactory
.
class
)
.
getClusterConfiguration
();
assertThat
(
clusterConfiguration
.
getClusterNodes
()).
hasSize
(
2
);
assertThat
(
clusterConfiguration
.
getClusterNodes
())
.
extracting
((
node
)
->
node
.
getHost
()
+
":"
+
node
.
getPort
())
.
containsExactlyInAnyOrder
(
"127.0.0.1:27379"
,
"127.0.0.1:27380"
);
});
}
@Test
...
...
spring-boot-project/spring-boot-dependencies/pom.xml
View file @
b5185fbe
...
...
@@ -116,7 +116,7 @@
<junit-platform.version>
1.1.0
</junit-platform.version>
<kafka.version>
1.1.0
</kafka.version>
<kotlin.version>
1.2.41
</kotlin.version>
<lettuce.version>
5.
0.4.RELEASE
</lettuce.version>
<lettuce.version>
5.
1.0.M1
</lettuce.version>
<liquibase.version>
3.6.1
</liquibase.version>
<log4j2.version>
2.10.0
</log4j2.version>
<logback.version>
1.2.3
</logback.version>
...
...
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