|
|
|
|
@ -285,8 +285,8 @@ class RedisAutoConfigurationTests {
@@ -285,8 +285,8 @@ class RedisAutoConfigurationTests {
|
|
|
|
|
void testRedisConfigurationWithIpv6Sentinel() { |
|
|
|
|
List<String> sentinels = Arrays.asList("[0:0:0:0:0:0:0:1]:26379", "[0:0:0:0:0:0:0:1]:26380"); |
|
|
|
|
this.contextRunner |
|
|
|
|
.withPropertyValues("spring.redis.sentinel.master:mymaster", |
|
|
|
|
"spring.redis.sentinel.nodes:" + StringUtils.collectionToCommaDelimitedString(sentinels)) |
|
|
|
|
.withPropertyValues("spring.data.redis.sentinel.master:mymaster", |
|
|
|
|
"spring.data.redis.sentinel.nodes:" + StringUtils.collectionToCommaDelimitedString(sentinels)) |
|
|
|
|
.run((context) -> assertThat(context.getBean(LettuceConnectionFactory.class).isRedisSentinelAware()) |
|
|
|
|
.isTrue()); |
|
|
|
|
} |
|
|
|
|
|