-
Notifications
You must be signed in to change notification settings - Fork 65
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
spec: add plugins to NodeInfoSettings #442
Conversation
Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>
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.
Thanks! Care to add a test that has a response with this field?
Changes AnalysisCommit SHA: f37796c API ChangesSummary
ReportThe full API changes report is available at: https://github.com/opensearch-project/opensearch-api-specification/actions/runs/10009680557/artifacts/1719412447 API Coverage
|
…erval to env for /_nodes/settings validation Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>
I am not quite sure how to do this as the response contains as map with a random node id. But I added the option to the docker env that is responsible for the plugins property to show up. |
You don't actually need to verify the content. As long as the response has the missing field it will validate it against the spec. Try without the fix and it should fail - I imagine with the change to the docker options it's failing now? With the fix it will pass. |
Yup, fails without the plugins. |
Merged, thank you! |
@Jakob3xD why did we add |
The setting gets returned on node info calls. With this it gets returned by the api and we can test against it. Otherwise it would be omitted. |
Can it be set via an API like here? I am thinking we need some way to set and unset these and other settings across tests. |
I tried to do this in #471 in which I added a test that ensures the response contains the |
Description
Add plugins to NodeInfoSettings
Issues Resolved
Closes #441
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.