From 5e7e2d8642d27c4cbe432368f7001a1c6a62cc0f Mon Sep 17 00:00:00 2001 From: zhangdong Date: Wed, 16 Jul 2025 15:07:57 +0800 Subject: [PATCH] [fix](case) fix regression case test_cluster_management_auth (#53336) Related PR: #50140 --- .../test_cluster_management_auth.groovy | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/regression-test/suites/auth_call/test_cluster_management_auth.groovy b/regression-test/suites/auth_call/test_cluster_management_auth.groovy index f769f29c967abc..c3c1692c405109 100644 --- a/regression-test/suites/auth_call/test_cluster_management_auth.groovy +++ b/regression-test/suites/auth_call/test_cluster_management_auth.groovy @@ -76,10 +76,7 @@ suite ("test_cluster_management_auth","nonConcurrent,p0,auth_call") { // pipeline can't support delete node, it can affect other case if (is_exists_follower()) { connect(user, "${pwd}", context.config.jdbcUrl) { - test { - sql """show frontends""" - exception "denied" - } + sql """show frontends""" test { sql """ALTER SYSTEM add FOLLOWER '${follower_ip}:${follower_host}'""" exception "denied" @@ -93,10 +90,7 @@ suite ("test_cluster_management_auth","nonConcurrent,p0,auth_call") { if (is_exists_observer()) { connect(user, "${pwd}", context.config.jdbcUrl) { - test { - sql """show frontends""" - exception "denied" - } + sql """show frontends""" test { sql """ALTER SYSTEM add OBSERVER '${observer_ip}:${observer_host}'""" exception "denied" @@ -110,10 +104,8 @@ suite ("test_cluster_management_auth","nonConcurrent,p0,auth_call") { if (is_exists_backends()) { connect(user, "${pwd}", context.config.jdbcUrl) { - test { - sql """show backends""" - exception "denied" - } + sql """show backends""" + test { sql """ALTER SYSTEM add backend '${backend_ip}:${backend_host}'""" exception "denied"