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 fcb4c7be2cc branch-3.0: [fix](test) adapt the test_routine_load_with_user case to storage vaults #46759 (#46803) fcb4c7be2cc is described below commit fcb4c7be2ccc1dfef8882f4fab7bf26bb92df633 Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> AuthorDate: Mon Jan 13 21:52:54 2025 +0800 branch-3.0: [fix](test) adapt the test_routine_load_with_user case to storage vaults #46759 (#46803) Cherry-picked from #46759 Co-authored-by: hui lai <lai...@selectdb.com> --- .../load_p0/routine_load/test_routine_load_with_user.groovy | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/regression-test/suites/load_p0/routine_load/test_routine_load_with_user.groovy b/regression-test/suites/load_p0/routine_load/test_routine_load_with_user.groovy index 7b01dbacc6f..73cce57822f 100644 --- a/regression-test/suites/load_p0/routine_load/test_routine_load_with_user.groovy +++ b/regression-test/suites/load_p0/routine_load/test_routine_load_with_user.groovy @@ -66,6 +66,19 @@ suite("test_routine_load_with_user","p0") { assertTrue(!clusters.isEmpty()) def validCluster = clusters[0][0] sql """GRANT USAGE_PRIV ON CLUSTER ${validCluster} TO ${user}"""; + + try { + def storageVaults = (sql " SHOW STORAGE VAULT; ").stream().map(row -> row[0]).collect(Collectors.toSet()) + logger.info("all vaults: ${storageVaults}") + for (String vault in storageVaults) { + sql """ + GRANT usage_priv ON storage vault ${vault} TO '${user}'; + """ + } + } catch (Exception e) { + // cloud instance may doesn't support storage vault + logger.info(e.getMessage()) + } } connect(user, "${pwd}", context.config.jdbcUrl) { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org