-
-
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
Add TcpHost to ElasticsearchContainer #956
Conversation
...elasticsearch/src/test/java/org/testcontainers/elasticsearch/ElasticsearchContainerTest.java
Outdated
Show resolved
Hide resolved
...elasticsearch/src/test/java/org/testcontainers/elasticsearch/ElasticsearchContainerTest.java
Outdated
Show resolved
Hide resolved
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.
Left some minor comments.
...elasticsearch/src/test/java/org/testcontainers/elasticsearch/ElasticsearchContainerTest.java
Outdated
Show resolved
Hide resolved
...elasticsearch/src/test/java/org/testcontainers/elasticsearch/ElasticsearchContainerTest.java
Outdated
Show resolved
Hide resolved
modules/elasticsearch/src/main/java/org/testcontainers/elasticsearch/TcpHost.java
Outdated
Show resolved
Hide resolved
Sorry, but please could you explain the purpose of this change? |
The goal is to be able to use the Transport Layer as well. Although it's kind of deprecated it is widely used in the field. That said, at least documentation should be updated to reflect this. |
I completed the documentation and added more details to the PR. |
Please note circleci failure is probably not my fault :D |
Don't know what to conclude from circleci failure:
|
Merge conflict resolved. |
ping :) |
modules/elasticsearch/src/main/java/org/testcontainers/elasticsearch/TcpHost.java
Outdated
Show resolved
Hide resolved
...elasticsearch/src/test/java/org/testcontainers/elasticsearch/ElasticsearchContainerTest.java
Outdated
Show resolved
Hide resolved
@rnorth , getTcpHost returns an InetSocketAddress now. |
Super, thanks @reda-alaoui. I'll merge now. |
Applications have 2 ways to communicate with ElasticSearch:
ElasticsearchContainer currently only allows the usage of the REST client.
This allows the application to connect to the container via transport client.