This is an automated email from the ASF dual-hosted git repository. dataroaring pushed a commit to branch branch-3.0 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push: new 74d60fe75b1 branch-3.0: [improvement](test) if run cloud mode, give user usage priv on comput… #50613 (#50639) 74d60fe75b1 is described below commit 74d60fe75b125752e0d05e627b03fda8757c993d Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> AuthorDate: Wed May 7 14:10:04 2025 +0800 branch-3.0: [improvement](test) if run cloud mode, give user usage priv on comput… #50613 (#50639) Cherry-picked from #50613 Co-authored-by: chunping <zhangchunp...@selectdb.com> --- .../external_table_p0/iceberg/iceberg_drop_rest_table.groovy | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/regression-test/suites/external_table_p0/iceberg/iceberg_drop_rest_table.groovy b/regression-test/suites/external_table_p0/iceberg/iceberg_drop_rest_table.groovy index 8bb779d759c..48868c1e399 100644 --- a/regression-test/suites/external_table_p0/iceberg/iceberg_drop_rest_table.groovy +++ b/regression-test/suites/external_table_p0/iceberg/iceberg_drop_rest_table.groovy @@ -65,6 +65,14 @@ suite("iceberg_drop_rest_table", "p0,external,doris,external_docker,external_doc sql """ grant all on internal.*.* to user1 """ sql """ grant SELECT_PRIV on ${catalog_name}.${db}.${tb} to user1 """ + //cloud-mode + if (isCloudMode()) { + def clusters = sql " SHOW CLUSTERS; " + assertTrue(!clusters.isEmpty()) + def validCluster = clusters[0][0] + sql """ GRANT USAGE_PRIV ON COMPUTE GROUP `${validCluster}` TO `user1`; """ + } + def result1 = connect('user1', '12345', context.config.jdbcUrl) { sql """ use ${catalog_name}.${db} """ qt_q1 """ select * from ${tb} """ --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org