This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
commit fa020b6696cbba867e04247bb0b951f60e248240 Author: Yulei-Yang <[email protected]> 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 <[email protected]> --- 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: [email protected] For additional commands, e-mail: [email protected]
