-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Improve docs for Elasticsearch 8 #8870
Improve docs for Elasticsearch 8 #8870
Conversation
// }} | ||
assertThat(response.getStatusLine().getStatusCode()).isEqualTo(200); | ||
assertThat(EntityUtils.toString(response.getEntity())).contains("cluster_name"); | ||
// httpClientContainer8 {{ |
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.
// httpClientContainer8 {{ | |
// httpClientContainer8 { |
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.
In line 211 it is also {{
. Which one is correct?
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.
It should be a single curly brace.
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.
I tested it and it only works with a single curly brace here. Docs preview looks good to me now
.build(); | ||
|
||
Response response = client.performRequest(new Request("GET", "/_cluster/health")); | ||
// }} |
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.
// }} | |
// } |
// }} | ||
assertThat(response.getStatusLine().getStatusCode()).isEqualTo(200); | ||
assertThat(EntityUtils.toString(response.getEntity())).contains("cluster_name"); | ||
// httpClientContainer8NoSSL {{ |
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.
// httpClientContainer8NoSSL {{ | |
// httpClientContainer8NoSSL { |
Hi @philipp94831, thanks for your contribution. I have added some suggestions that will fix how the code is render in the documentation, see https://deploy-preview-8870--testcontainers.netlify.app/modules/elasticsearch/ Also, regarding to the new tests I think |
What is your suggestion wrt duplication? I mainly added the tests in order to document the connection to ES 8. Because of the method used in the existing tests I deemed them unsuitable for documentation purposes |
I think if we want to have |
Sorry for the delay. Let's proceed with @kiview suggestions. Also, you can check docs locally by running |
@philipp94831 can you please run |
Thanks @philipp94831 ! |
The docs for connecting to Elasticsearch container only work for Elasticsearch v7. For Elasticsearch v8 either the SSLContext has to be configured for the HTTPClient or SSL needs to be disabled. This PR adds according documentation