Skip to content
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

Merged
merged 2 commits into from
Jul 22, 2024

Conversation

Jakob3xD
Copy link
Contributor

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.

Copy link
Member

@dblock dblock left a 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?

Copy link

github-actions bot commented Jul 19, 2024

Changes Analysis

Commit SHA: f37796c
Comparing To SHA: e1cd369

API Changes

Summary


└─┬Components
  ├──[➕] schemas (46554:7)
  └─┬nodes.info:NodeInfoSettings
    └──[➕] properties (46391:9)

Document Element Total Changes Breaking Changes
components 2 0
  • Total Changes: 2
  • Additions: 2

Report

The full API changes report is available at: https:/opensearch-project/opensearch-api-specification/actions/runs/10009680557/artifacts/1719412447

API Coverage

Before After Δ
Covered (%) 490 (47.99 %) 490 (47.99 %) 0 (0 %)
Uncovered (%) 531 (52.01 %) 531 (52.01 %) 0 (0 %)
Unknown 24 24 0

…erval to env for /_nodes/settings validation

Signed-off-by: Jakob Hahn <[email protected]>
@Jakob3xD
Copy link
Contributor Author

Thanks! Care to add a test that has a response with this field?

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.

@dblock
Copy link
Member

dblock commented Jul 19, 2024

I am not quite sure how to do this as the response contains as map with a random node id.

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.

@Jakob3xD
Copy link
Contributor Author

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.
https:/Jakob3xD/opensearch-api-specification/actions/runs/10036637738/job/27734769941

@dblock dblock merged commit d8f1e02 into opensearch-project:main Jul 22, 2024
11 checks passed
@dblock
Copy link
Member

dblock commented Jul 22, 2024

Merged, thank you!

@Jakob3xD Jakob3xD deleted the jh-node-info branch July 23, 2024 12:33
@dblock
Copy link
Member

dblock commented Aug 1, 2024

@Jakob3xD why did we add plugins.index_state_management.job_interval=1 here?

@Jakob3xD
Copy link
Contributor Author

Jakob3xD commented Aug 5, 2024

@Jakob3xD why did we add plugins.index_state_management.job_interval=1 here?

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.

@dblock
Copy link
Member

dblock commented Aug 5, 2024

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.

@dblock
Copy link
Member

dblock commented Aug 6, 2024

I tried to do this in #471 in which I added a test that ensures the response contains the job_interval value. You can set cluster settings, but it has no effect on the response from nodes unfortunately. There's no way to set a node setting via API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] _nodes/settings misses the plugins field
2 participants