From 438317796b7a34b100e47ce2c5acdf184dfdf53d Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 26 Jun 2018 16:08:32 +0200 Subject: Sentinel: test command renaming feature. --- tests/sentinel/tests/07-down-conditions.tcl | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/sentinel') diff --git a/tests/sentinel/tests/07-down-conditions.tcl b/tests/sentinel/tests/07-down-conditions.tcl index a60656e59..fb2993b6f 100644 --- a/tests/sentinel/tests/07-down-conditions.tcl +++ b/tests/sentinel/tests/07-down-conditions.tcl @@ -66,3 +66,13 @@ test "SDOWN is triggered by misconfigured instance repling with errors" { R 0 bgsave ensure_master_up } + +# We use this test setup to also test command renaming, as a side +# effect of the master going down if we send PONG instead of PING +test "SDOWN is triggered if we rename PING to PONG" { + ensure_master_up + S 4 SENTINEL SET mymaster rename-command PING PONG + ensure_master_down + S 4 SENTINEL SET mymaster rename-command PING PING + ensure_master_up +} -- cgit v1.2.1