-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support https for es client #3150
Changes from 4 commits
e942e57
b4a3ac3
451da18
4aa6578
9f9a5b2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2945,23 +2945,69 @@ TEST_F(ParserTest, FullTextServiceTest) { | |
std::string query = "SIGN IN TEXT SERVICE (127.0.0.1:9200)"; | ||
auto result = parse(query); | ||
ASSERT_TRUE(result.ok()) << result.status(); | ||
ASSERT_EQ(result.value()->toString(), query); | ||
} | ||
{ | ||
std::string query = "SIGN IN TEXT SERVICE (127.0.0.1:9200, HTTP)"; | ||
auto result = parse(query); | ||
ASSERT_TRUE(result.ok()) << result.status(); | ||
ASSERT_EQ(result.value()->toString(), query); | ||
} | ||
{ | ||
std::string query = "SIGN IN TEXT SERVICE (127.0.0.1:9200, HTTPS)"; | ||
auto result = parse(query); | ||
ASSERT_TRUE(result.ok()) << result.status(); | ||
ASSERT_EQ(result.value()->toString(), query); | ||
} | ||
{ | ||
std::string query = "SIGN IN TEXT SERVICE (127.0.0.1:9200, HTTPS, \"user\")"; | ||
auto result = parse(query); | ||
ASSERT_FALSE(result.ok()); | ||
} | ||
{ | ||
std::string query = "SIGN IN TEXT SERVICE (127.0.0.1:9200), (127.0.0.1:9300)"; | ||
auto result = parse(query); | ||
ASSERT_TRUE(result.ok()) << result.status(); | ||
ASSERT_EQ(result.value()->toString(), query); | ||
} | ||
{ | ||
std::string query = "SIGN IN TEXT SERVICE (127.0.0.1:9200, HTTPS), (127.0.0.1:9300)"; | ||
auto result = parse(query); | ||
ASSERT_TRUE(result.ok()) << result.status(); | ||
ASSERT_EQ(result.value()->toString(), query); | ||
} | ||
{ | ||
std::string query = "SIGN IN TEXT SERVICE (127.0.0.1:9200, \"user\", \"password\")"; | ||
auto result = parse(query); | ||
ASSERT_TRUE(result.ok()) << result.status(); | ||
} | ||
{ | ||
std::string query = "SIGN IN TEXT SERVICE (127.0.0.1:9200, HTTP, \"user\", \"password\")"; | ||
auto result = parse(query); | ||
ASSERT_TRUE(result.ok()) << result.status(); | ||
ASSERT_EQ(result.value()->toString(), query); | ||
} | ||
{ | ||
std::string query = "SIGN IN TEXT SERVICE (127.0.0.1:9200, HTTPS, \"user\", \"password\")"; | ||
auto result = parse(query); | ||
ASSERT_TRUE(result.ok()) << result.status(); | ||
ASSERT_EQ(result.value()->toString(), query); | ||
} | ||
{ | ||
std::string query = | ||
"SIGN IN TEXT SERVICE (127.0.0.1:9200, \"user\", \"password\"), " | ||
"(127.0.0.1:9200, \"user\", \"password\")"; | ||
auto result = parse(query); | ||
ASSERT_TRUE(result.ok()) << result.status(); | ||
ASSERT_EQ(result.value()->toString(), query); | ||
} | ||
{ | ||
std::string query = | ||
"SIGN IN TEXT SERVICE (127.0.0.1:9200, HTTP, \"user\", \"password\"), " | ||
"(127.0.0.1:9200, HTTPS, \"user\", \"password\")"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why not use following format:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Good idea, I agree with you. If we change it now, there will be compatibility issues. I suggest improvements in the next big release, WDYT ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why exist incompatible issue? We can use http by default if user don't specify it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I want to change the meta data storage by thrift structure , current as below :
I think below is better :
This change needs to be handled by the upgrade tool. |
||
auto result = parse(query); | ||
ASSERT_TRUE(result.ok()) << result.status(); | ||
ASSERT_EQ(result.value()->toString(), query); | ||
} | ||
{ | ||
std::string query = "SIGN OUT TEXT SERVICE"; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-k
allow curl to use non-secure ssl connection and transfer data ?