This is an automated email from the ASF dual-hosted git repository.
xuyang pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 1fc4e80ca67 [Improvement](regression-test) generate user token by
configured user and password rather than hard cord (#31326)
1fc4e80ca67 is described below
commit 1fc4e80ca67f37ca0a63108cee85f9118a25f9f8
Author: Yulei-Yang <[email protected]>
AuthorDate: Mon Feb 26 19:06:27 2024 +0800
[Improvement](regression-test) generate user token by configured user and
password rather than hard cord (#31326)
cherry-pick #31345
---
regression-test/suites/bloom_filter_p0/test_bloom_filter_hit.groovy | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/regression-test/suites/bloom_filter_p0/test_bloom_filter_hit.groovy
b/regression-test/suites/bloom_filter_p0/test_bloom_filter_hit.groovy
index 213afc2517a..357dc2db31c 100644
--- a/regression-test/suites/bloom_filter_p0/test_bloom_filter_hit.groovy
+++ b/regression-test/suites/bloom_filter_p0/test_bloom_filter_hit.groovy
@@ -68,8 +68,9 @@ suite("test_bloom_filter_hit") {
def dst = 'http://' + context.config.feHttpAddress
def conn = new URL(dst + url).openConnection()
conn.setRequestMethod("GET")
- //token for root
- conn.setRequestProperty("Authorization","Basic cm9vdDo=")
+ def encoding =
Base64.getEncoder().encodeToString((context.config.feHttpUser + ":" +
+ (context.config.feHttpPassword == null ? "" :
context.config.feHttpPassword)).getBytes("UTF-8"))
+ conn.setRequestProperty("Authorization", "Basic ${encoding}")
return conn.getInputStream().getText()
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]