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

gavinchou 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 3dbad0d8acc [enhance](Regression) Construct Azure format url when 
running regression tests on azure cloud (#36739)
3dbad0d8acc is described below

commit 3dbad0d8acc8041dcfcca5754de2fc777e3e0243
Author: AlexYue <[email protected]>
AuthorDate: Mon Jun 24 19:17:36 2024 +0800

    [enhance](Regression) Construct Azure format url when running regression 
tests on azure cloud (#36739)
    
    The file url's format on azure Blob is not S3-compatible. This pr
    returns the correct url when running on Azure Cloud.
---
 .../src/main/groovy/org/apache/doris/regression/suite/Suite.groovy   | 5 +++++
 1 file changed, 5 insertions(+)

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 7457e1bf8a8..7e746248e7a 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
@@ -771,6 +771,11 @@ class Suite implements GroovyInterceptable {
 
     String getS3Url() {
         String s3BucketName = context.config.otherConfigs.get("s3BucketName");
+        if (context.config.otherConfigs.get("s3Provider") == "AZURE") {
+            String accountName = context.config.otherConfigs.get("ak");
+            String s3Url = 
"http://${accountName}.blob.core.windows.net/${s3BucketName}";
+            return s3Url
+        }
         String s3Endpoint = context.config.otherConfigs.get("s3Endpoint");
         String s3Url = "http://${s3BucketName}.${s3Endpoint}";
         return s3Url


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

Reply via email to