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
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new ac8cff34ce1 [fix](ut)fix be enable_http_auth ut (#40071) (#40088)
ac8cff34ce1 is described below
commit ac8cff34ce1b5d563cb646c7d640dfadfce51cf0
Author: daidai <[email protected]>
AuthorDate: Thu Aug 29 16:42:53 2024 +0800
[fix](ut)fix be enable_http_auth ut (#40071) (#40088)
bp #40071
## Proposed changes
before pr #39577
---
be/test/http/http_auth_test.cpp | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/be/test/http/http_auth_test.cpp b/be/test/http/http_auth_test.cpp
index 6077f871b70..f39e61aa6e2 100644
--- a/be/test/http/http_auth_test.cpp
+++ b/be/test/http/http_auth_test.cpp
@@ -73,8 +73,7 @@ TEST_F(HttpAuthTest, enable_all_http_auth) {
{
auto evhttp_req = evhttp_request_new(nullptr, nullptr);
HttpRequest req2(evhttp_req);
- auto auth = encode_basic_auth("doris", "passwd");
- req2._headers.emplace(HttpHeaders::AUTHORIZATION, auth);
+ req2._headers.emplace(HttpHeaders::AUTHORIZATION, "Basic cm9vdDo=");
EXPECT_EQ(s_auth_handler.on_header(&req2), -1);
}
@@ -82,8 +81,7 @@ TEST_F(HttpAuthTest, enable_all_http_auth) {
{
auto evhttp_req = evhttp_request_new(nullptr, nullptr);
HttpRequest req3(evhttp_req);
- auto auth = encode_basic_auth("doris", "passwd");
- req3._headers.emplace(HttpHeaders::AUTHORIZATION, auth);
+ req3._headers.emplace(HttpHeaders::AUTHORIZATION, "Basic cm9vdDo=");
req3._params.emplace("table", "T");
EXPECT_EQ(s_auth_handler.on_header(&req3), 0);
evhttp_request_free(evhttp_req);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]