Skip to content

Commit

Permalink
Fixed a test to comply with 24.3
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-zaitsev committed Jun 27, 2024
1 parent a53350a commit 89bcf59
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/e2e/test_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
Expand Down

0 comments on commit 89bcf59

Please sign in to comment.