|
|
@ -89,7 +89,7 @@ class SessionAutoConfigurationRedisTests extends AbstractSessionAutoConfiguratio
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
void redisSessionConfigureNoStrategy() {
|
|
|
|
void redisSessionWithConfigureActionNone() {
|
|
|
|
this.contextRunner.withConfiguration(AutoConfigurations.of(RedisAutoConfiguration.class))
|
|
|
|
this.contextRunner.withConfiguration(AutoConfigurations.of(RedisAutoConfiguration.class))
|
|
|
|
.withPropertyValues("spring.session.store-type=redis", "spring.session.redis.configure-action=none",
|
|
|
|
.withPropertyValues("spring.session.store-type=redis", "spring.session.redis.configure-action=none",
|
|
|
|
"spring.redis.port=" + redis.getFirstMappedPort())
|
|
|
|
"spring.redis.port=" + redis.getFirstMappedPort())
|
|
|
@ -97,7 +97,7 @@ class SessionAutoConfigurationRedisTests extends AbstractSessionAutoConfiguratio
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
void redisSessionConfigureDefaultStrategy() {
|
|
|
|
void redisSessionWithDefaultConfigureActionNone() {
|
|
|
|
this.contextRunner.withConfiguration(AutoConfigurations.of(RedisAutoConfiguration.class))
|
|
|
|
this.contextRunner.withConfiguration(AutoConfigurations.of(RedisAutoConfiguration.class))
|
|
|
|
.withPropertyValues("spring.session.store-type=redis",
|
|
|
|
.withPropertyValues("spring.session.store-type=redis",
|
|
|
|
"spring.redis.port=" + redis.getFirstMappedPort())
|
|
|
|
"spring.redis.port=" + redis.getFirstMappedPort())
|
|
|
@ -106,7 +106,7 @@ class SessionAutoConfigurationRedisTests extends AbstractSessionAutoConfiguratio
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
void redisSessionConfigureCustomStrategy() {
|
|
|
|
void redisSessionWithCustomConfigureRedisActionBean() {
|
|
|
|
this.contextRunner.withConfiguration(AutoConfigurations.of(RedisAutoConfiguration.class))
|
|
|
|
this.contextRunner.withConfiguration(AutoConfigurations.of(RedisAutoConfiguration.class))
|
|
|
|
.withUserConfiguration(MaxEntriesRedisAction.class)
|
|
|
|
.withUserConfiguration(MaxEntriesRedisAction.class)
|
|
|
|
.withPropertyValues("spring.session.store-type=redis",
|
|
|
|
.withPropertyValues("spring.session.store-type=redis",
|
|
|
|