This is an automated email from the ASF dual-hosted git repository. wangbo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new dbe10784294 [Fix](regression) Fix cluster privilege for workload group case in cloud mode (#37233) dbe10784294 is described below commit dbe10784294550b59c56832e474e1e8746d31eed Author: wangbo <wan...@apache.org> AuthorDate: Thu Jul 4 10:00:31 2024 +0800 [Fix](regression) Fix cluster privilege for workload group case in cloud mode (#37233) ## Proposed changes When regression test test a cloud mode Doris cluster, non-root user should set a cluster name, otherwise query may failed. --- regression-test/suites/workload_manager_p0/test_curd_wlg.groovy | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/regression-test/suites/workload_manager_p0/test_curd_wlg.groovy b/regression-test/suites/workload_manager_p0/test_curd_wlg.groovy index 95763631d1e..091bbf44c82 100644 --- a/regression-test/suites/workload_manager_p0/test_curd_wlg.groovy +++ b/regression-test/suites/workload_manager_p0/test_curd_wlg.groovy @@ -282,6 +282,15 @@ suite("test_crud_wlg") { sql """drop user if exists test_wlg_user""" sql "CREATE USER 'test_wlg_user'@'%' IDENTIFIED BY '12345';" sql """grant SELECT_PRIV on *.*.* to test_wlg_user;""" + + //cloud-mode + if (isCloudMode()) { + def clusters = sql " SHOW CLUSTERS; " + assertTrue(!clusters.isEmpty()) + def validCluster = clusters[0][0] + sql """GRANT USAGE_PRIV ON CLUSTER ${validCluster} TO test_wlg_user"""; + } + connect(user = 'test_wlg_user', password = '12345', url = context.config.jdbcUrl) { sql """ select count(1) from information_schema.backend_active_tasks; """ } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org