Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

Commit 1cb65cb

Browse files
committed
Updated tests. Fixed typos in what redis commands that shold be blocked and who should not be.
1 parent e260aa6 commit 1cb65cb

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

rediscluster/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class RedisCluster(Redis):
107107
'ACL SETUSER',
108108
'ACL USERS',
109109
'ACL WHOAMI',
110-
'OBJECT',
110+
'BITOP',
111111
'MOVE',
112112
'SCRIPT KILL',
113113
'SENTINEL GET-MASTER-ADDR-BY-NAME',

tests/test_cluster_obj.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,19 @@ def test_blocked_commands(r):
163163
These commands should be blocked and raise RedisClusterException
164164
"""
165165
blocked_commands = [
166-
'BITOP',
166+
'ACL CAT',
167+
'ACL DELUSER',
168+
'ACL GENPASS',
169+
'ACL GETUSER',
170+
'ACL HELP',
171+
'ACL LIST',
172+
'ACL LOAD',
173+
'ACL LOG',
174+
'ACL SAVE',
175+
'ACL SETUSER',
176+
'ACL USERS',
177+
'ACL WHOAMI',
178+
'OBJECT',
167179
'MOVE',
168180
'SCRIPT KILL',
169181
'SENTINEL GET-MASTER-ADDR-BY-NAME',
@@ -176,6 +188,7 @@ def test_blocked_commands(r):
176188
'SENTINEL SLAVES',
177189
'SHUTDOWN',
178190
'SLAVEOF',
191+
'WAIT',
179192
]
180193

181194
for command in blocked_commands:

0 commit comments

Comments
 (0)