From 39524c00c4e4c6399eceb34cee9564b2be5e1bef Mon Sep 17 00:00:00 2001 From: Bar Shaul Date: Sun, 5 Dec 2021 09:43:01 +0200 Subject: [PATCH 1/2] Fixed cluster ACL tests --- tests/test_cluster.py | 3 ++- tests/test_commands.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_cluster.py b/tests/test_cluster.py index 15d8ac6c35..ae1c3db9de 100644 --- a/tests/test_cluster.py +++ b/tests/test_cluster.py @@ -1789,7 +1789,8 @@ def teardown(): username, enabled=True, reset=True, - commands=["+get", "+set", "+select", "+cluster", "+command"], + commands=["+get", "+set", "+select", + "+cluster", "+command", "+info"], keys=["{cache}:*"], nopass=True, target_nodes="primaries", diff --git a/tests/test_commands.py b/tests/test_commands.py index 936cbe5a40..850ad6a9e1 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -537,7 +537,8 @@ def test_client_kill_filter_by_user(self, r, request): killuser, enabled=True, reset=True, - commands=["+get", "+set", "+select", "+cluster", "+command"], + commands=["+get", "+set", "+select", + "+cluster", "+command", "+info"], keys=["cache:*"], nopass=True, ) From 6b67df4b73b65386fb85b140ace2e53155ecec88 Mon Sep 17 00:00:00 2001 From: Bar Shaul Date: Sun, 5 Dec 2021 09:49:52 +0200 Subject: [PATCH 2/2] Fixed linters --- tests/test_cluster.py | 3 +-- tests/test_commands.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_cluster.py b/tests/test_cluster.py index ae1c3db9de..e1c8c34768 100644 --- a/tests/test_cluster.py +++ b/tests/test_cluster.py @@ -1789,8 +1789,7 @@ def teardown(): username, enabled=True, reset=True, - commands=["+get", "+set", "+select", - "+cluster", "+command", "+info"], + commands=["+get", "+set", "+select", "+cluster", "+command", "+info"], keys=["{cache}:*"], nopass=True, target_nodes="primaries", diff --git a/tests/test_commands.py b/tests/test_commands.py index 850ad6a9e1..eab9072c0d 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -537,8 +537,7 @@ def test_client_kill_filter_by_user(self, r, request): killuser, enabled=True, reset=True, - commands=["+get", "+set", "+select", - "+cluster", "+command", "+info"], + commands=["+get", "+set", "+select", "+cluster", "+command", "+info"], keys=["cache:*"], nopass=True, )