This is an automated email from the ASF dual-hosted git repository. yiguolei 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 611c1f9f903 [Improvement](regression-test) generate user token by configured user and password rather than hard cord (#31345) 611c1f9f903 is described below commit 611c1f9f90388bc47443ebb2b104bbe7ed567807 Author: Yulei-Yang <yulei.yang0...@gmail.com> AuthorDate: Wed Feb 28 14:06:04 2024 +0800 [Improvement](regression-test) generate user token by configured user and password rather than hard cord (#31345) Co-authored-by: xy720 <22125576+xy...@users.noreply.github.com> --- 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 4ba1b888359..34c4042954c 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 @@ -69,8 +69,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: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org