koarz commented on code in PR #58368:
URL: https://github.com/apache/doris/pull/58368#discussion_r2583523143


##########
regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/SuiteContext.groovy:
##########
@@ -339,6 +339,25 @@ class SuiteContext implements Closeable {
 
     public <T> T connect(String user, String password, String url, Closure<T> 
actionSupplier) {
         def originConnection = threadLocalConn.get()
+        if 
((config.otherConfigs.get("enableTLS")?.toString()?.equalsIgnoreCase("true")) 
?: false) {
+            String useSslconfig = 
"useSSL=true&requireSSL=true&verifyServerCertificate=true"
+            String clientCAKey = "clientCertificateKeyStoreUrl=file:" + 
config.otherConfigs.get("keyStorePath")
+            String clientCAPwd = "clientCertificateKeyStorePassword=" + 
config.otherConfigs.get("keyStorePassword")
+            String trustCAKey = "trustCertificateKeyStoreUrl=file:" + 
config.otherConfigs.get("trustStorePath")
+            String trustCAPwd = "trustCertificateKeyStorePassword=" + 
config.otherConfigs.get("trustStorePassword")
+            String tlsUrl = useSslconfig + "&" + clientCAKey + "&" + 
clientCAPwd + "&" +  trustCAKey + "&" + trustCAPwd

Review Comment:
   这里一样



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to