This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new 7b54f05131c branch-4.0: [test](auth)Fix backup backup of auth test
case #56988 (#60075)
7b54f05131c is described below
commit 7b54f05131c5597b65e729b2badbe23def31aa5f
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Jan 21 00:03:15 2026 +0800
branch-4.0: [test](auth)Fix backup backup of auth test case #56988 (#60075)
Cherry-picked from #56988
Co-authored-by: zfr95 <[email protected]>
---
regression-test/suites/auth_call/test_ddl_backup_auth.groovy | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/regression-test/suites/auth_call/test_ddl_backup_auth.groovy
b/regression-test/suites/auth_call/test_ddl_backup_auth.groovy
index fdb2d6b2221..1a2f7b79718 100644
--- a/regression-test/suites/auth_call/test_ddl_backup_auth.groovy
+++ b/regression-test/suites/auth_call/test_ddl_backup_auth.groovy
@@ -24,9 +24,11 @@ suite("test_ddl_backup_auth","p0,auth_call") {
int hashCode = randomValue.hashCode()
hashCode = hashCode > 0 ? hashCode : hashCode * (-1)
+ def label = UUID.randomUUID().toString().replaceAll("-", "")
+
String user = 'test_ddl_backup_auth_user'
String pwd = 'C123_567p'
- String dbName = 'test_ddl_backup_auth_db'
+ String dbName = 'test_ddl_backup_auth_db_' + label
String tableName = 'test_ddl_backup_auth_tb'
String repositoryName = 'test_ddl_backup_auth_rps'
String backupLabelName = 'test_ddl_backup_auth_backup_label' +
hashCode.toString()
@@ -100,12 +102,18 @@ suite("test_ddl_backup_auth","p0,auth_call") {
}
}
sql """grant LOAD_PRIV on ${dbName}.* to ${user}"""
+
+ // check backup job not exists
+ def res = sql """SHOW BACKUP FROM ${dbName};"""
+ logger.info("res: " + res)
+ assertTrue(res.size() == 0)
+
connect(user, "${pwd}", context.config.jdbcUrl) {
sql """BACKUP SNAPSHOT ${dbName}.${backupLabelName}
TO ${repositoryName}
ON (${tableName})
PROPERTIES ("type" = "full");"""
- def res = sql """SHOW BACKUP FROM ${dbName};"""
+ res = sql """SHOW BACKUP FROM ${dbName};"""
logger.info("res: " + res)
assertTrue(res.size() == 1)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]