This is an automated email from the ASF dual-hosted git repository.

morrysnow pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.1 by this push:
     new 401f9009f69 branch-3.1: [opt](test) Use better way to check 
`enableStoragevault` for regression test #56847 (#56868)
401f9009f69 is described below

commit 401f9009f69bd49e63aa65b1b949856b987f4bcd
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Oct 13 12:14:31 2025 +0800

    branch-3.1: [opt](test) Use better way to check `enableStoragevault` for 
regression test #56847 (#56868)
    
    Cherry-picked from #56847
    
    Co-authored-by: Lei Zhang <[email protected]>
---
 .../org/apache/doris/regression/suite/Suite.groovy | 32 ++++------------------
 1 file changed, 6 insertions(+), 26 deletions(-)

diff --git 
a/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy
 
b/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy
index 3f12da1c674..6aa4593a6d2 100644
--- 
a/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy
+++ 
b/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy
@@ -1829,34 +1829,14 @@ class Suite implements GroovyInterceptable {
         if (!isCloudMode()) {
             return false;
         }
-
-        if (Strings.isNullOrEmpty(context.config.metaServiceHttpAddress)
-                || Strings.isNullOrEmpty(context.config.instanceId)
-                || Strings.isNullOrEmpty(context.config.metaServiceToken)) {
+        try {
+            sql "show storage vault"
+        } catch (Exception e) {
+            logger.info("show storage vault failed: {}", e.getMessage())
+            Assert.assertTrue(e.getMessage().contains("Your cloud instance 
doesn't support storage vault"))
             return false;
         }
-
-        boolean ret = false;
-        def getInstanceInfo = { check_func ->
-            httpTest {
-                endpoint context.config.metaServiceHttpAddress
-                uri 
"/MetaService/http/get_instance?token=${context.config.metaServiceToken}&instance_id=${context.config.instanceId}"
-                op "get"
-                check check_func
-            }
-        }
-        getInstanceInfo.call() {
-            respCode, body ->
-                String respCodeValue = "${respCode}".toString();
-                if (!respCodeValue.equals("200")) {
-                    return;
-                }
-                def json = parseJson(body)
-                if (json.result.containsKey("enable_storage_vault") && 
json.result.enable_storage_vault) {
-                    ret = true;
-                }
-        }
-        return ret;
+        return true;
     }
 
     boolean isGroupCommitMode() {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to