From 89bcf59a38fe9194bd708dcfe7c68ffee257d319 Mon Sep 17 00:00:00 2001 From: alz Date: Fri, 28 Jun 2024 02:06:59 +0300 Subject: [PATCH] Fixed a test to comply with 24.3 --- tests/e2e/test_operator.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/e2e/test_operator.py b/tests/e2e/test_operator.py index 5fcc20f1f..801286e48 100644 --- a/tests/e2e/test_operator.py +++ b/tests/e2e/test_operator.py @@ -785,17 +785,19 @@ def test_default_user(): ) assert out == "1000" - with And("User 'default' with NO access management enabled CAN NOT run SHOW USERS"): + with And("User 'user3' with NO access management enabled CAN NOT run SHOW GRANTS"): out = clickhouse.query_with_error( "test-011-secured-cluster", - "SHOW USERS", + "SHOW GRANTS FOR default", # Looks like a regression in 24.3, SHOW USERS works here + user="user3", + pwd="clickhouse_operator_password", ) assert "ACCESS_DENIED" in out - with And("User 'user4' with access management enabled CAN run SHOW USERS"): + with And("User 'user4' with access management enabled CAN run SHOW GRANTS"): out = clickhouse.query( "test-011-secured-cluster", - "SHOW USERS", + "SHOW GRANTS FOR default", user="user4", pwd="secret", )