Polish "Validate node configuration with static master replica"
See gh-47401
This commit is contained in:
parent
4fd9626854
commit
1e4cc948f2
|
@ -500,6 +500,15 @@ class DataRedisAutoConfigurationTests {
|
|||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
void testRedisConfigurationWithMasterReplicaAndNoNode() {
|
||||
this.contextRunner.withPropertyValues("spring.data.redis.masterreplica.nodes=")
|
||||
.run((context) -> assertThat(context).hasFailed()
|
||||
.getFailure()
|
||||
.rootCause()
|
||||
.hasMessage("At least one node is required for master-replica configuration"));
|
||||
}
|
||||
|
||||
@Test
|
||||
void testRedisConfigurationWithMasterReplica() {
|
||||
this.contextRunner
|
||||
|
|
Loading…
Reference in New Issue