-
Notifications
You must be signed in to change notification settings - Fork 25k
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 setFactory permission to GceDiscoveryPlugin #16860
Conversation
@@ -30,6 +30,7 @@ | |||
import java.util.Collection; | |||
import java.util.Collections; | |||
import java.util.List; | |||
import java.util.function.Function; |
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.
Why this import?
This commit adds a missing permission and a simple test that ensures we discover other nodes via a mock http endpoint. Closes elastic#16485
Interesting. I like the idea of using an HTTP server to serve the mock responses. LGTM |
This looks ok to me. It is good to have some kind of test for GCE. I'm apprehensive about checking in the keyfile, but I guess it is just for a test... At another time, I am happy to look at moving this to a fixture, as well as generating the keyfile, but this PR at least gets us into a better state than we are now. |
+1 |
…e to the source repo
@rjernst @jasontedor I pushed a new commit generating the keystore from gradle |
Looks good, thanks! |
LGTM. |
Add setFactory permission to GceDiscoveryPlugin This commit adds a missing permission and a simple test that ensures we discover other nodes via a mock http endpoint. Closes #16485
This commit adds a missing permission and a simple test that ensures we discover other nodes via a mock http endpoint. Backport of elastic#16860 Relates to elastic#16485
This commit adds a missing permission and a simple test that
ensures we discover other nodes via a mock http endpoint.
Closes #16485
@rjernst I had to make this integ test a ordinary testcase since it runs against an internal cluster. I didn't explore the test fixture path yet since it also requires a test plugin etc. I wonder if we can make this one test run against the internal cluster while others runs against external clusters? I am not super happy with the test but it's a major step forward since it really tests the integration of this plugins while everything else isn't really testing it. It also would have caught the security issue though