-
Notifications
You must be signed in to change notification settings - Fork 62
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
[WIP] Add test node #377
[WIP] Add test node #377
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,21 +21,24 @@ components: | |
- aggregations | ||
- indices | ||
- search_pipelines | ||
- _all | ||
- _cluster_manager | ||
Comment on lines
+24
to
+25
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These are node filters not metric names |
||
ResponseBase: | ||
allOf: | ||
- type: object | ||
properties: | ||
cluster_name: | ||
$ref: '_common.yaml#/components/schemas/Name' | ||
nodes: | ||
type: object | ||
additionalProperties: | ||
$ref: '#/components/schemas/NodeInfo' | ||
oneOf: | ||
- type: object | ||
$ref: '#/components/schemas/NodeInfo' | ||
- type: object | ||
additionalProperties: {} | ||
_nodes: | ||
$ref: 'nodes._common.yaml#/components/schemas/NodesResponseBase' | ||
required: | ||
- cluster_name | ||
- nodes | ||
- _nodes | ||
Comment on lines
32
to
42
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These changes are likely due to the duplicate path and having the wrong schemas, please revert them and test again with other changes made. |
||
NodeInfo: | ||
type: object | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,53 @@ chapters: | |
method: GET | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file should be moved under |
||
response: | ||
status: 200 | ||
- synopsis: Nodes thread_pool metric with a json response. | ||
path: /_nodes/{metric} | ||
method: GET | ||
parameters: | ||
metric: | ||
- thread_pool | ||
response: | ||
status: 200 | ||
- synopsis: Nodes jvm and thread_pool metric with a json response. | ||
path: /_nodes/{metric} | ||
method: GET | ||
parameters: | ||
metric: | ||
- jvm | ||
- thread_pool | ||
response: | ||
status: 200 | ||
- synopsis: Nodes _all metric with a json response. | ||
path: /_nodes/{metric} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This one is technically |
||
method: GET | ||
parameters: | ||
metric: | ||
- _all | ||
response: | ||
status: 200 | ||
- synopsis: Nodes _cluster_manager metric with a json response. | ||
path: /_nodes/{metric}/stats | ||
method: GET | ||
parameters: | ||
metric: | ||
- _cluster_manager | ||
response: | ||
status: 200 | ||
- synopsis: Nodes _cluster_manager metric with a json response. | ||
path: /_nodes/{metric}/stats | ||
method: GET | ||
parameters: | ||
metric: | ||
- data:true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @dblock do you have any idea how to implement a fix for this test ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This error?
The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's seems weird yes, but it's define in documentation There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it read like a JSON value? Quote it, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if I do that, that implies that I have to put it in the enum and therefore do I have to do the same for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suppose that yes? There's really no such thing as booleans in URL paths AFAIK, this is a very creative use of the API. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These should be using |
||
response: | ||
status: 200 | ||
- synopsis: Nodes _cluster_manager metric with a json response. | ||
path: /_nodes/{metric}/stats | ||
method: GET | ||
parameters: | ||
metric: | ||
- _all | ||
- cluster_manager:false | ||
response: | ||
status: 200 |
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.
// Read https://opensearch.org/docs/latest/api-reference/nodes-apis/index/
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.
This path already exists in the spec, it is
/_nodes/{node_id}/stats
and is part of thenodes.stats
operation notnodes.info