Skip to content

Commit

Permalink
Change test and fix it
Browse files Browse the repository at this point in the history
Signed-off-by: Bzil <[email protected]>
  • Loading branch information
Bzil committed Jul 3, 2024
1 parent dabb773 commit 3e72602
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 32 deletions.
4 changes: 3 additions & 1 deletion spec/schemas/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,8 @@ components:
$ref: '#/components/schemas/VersionString'
licensed:
type: boolean
custom_foldername:
type: string
opensearch_version:
$ref: '#/components/schemas/VersionString'
required:
Expand All @@ -1117,7 +1119,6 @@ components:
- java_version
- name
- version
- licensed
NodeStatistics:
type: object
properties:
Expand Down Expand Up @@ -1690,6 +1691,7 @@ components:
- transform
- remote_cluster_client
- coordinating_only
- cluster_manager
HttpHeaders:
type: object
additionalProperties:
Expand Down
86 changes: 60 additions & 26 deletions spec/schemas/nodes.info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ components:
- aggregations
- indices
- search_pipelines
- _all
ResponseBase:
allOf:
- $ref: 'nodes._common.yaml#/components/schemas/NodesResponseBase'
- type: object
properties:
cluster_name:
Expand All @@ -33,9 +31,12 @@ components:
type: object
additionalProperties:
$ref: '#/components/schemas/NodeInfo'
_nodes:
$ref: 'nodes._common.yaml#/components/schemas/NodesResponseBase'
required:
- cluster_name
- nodes
- _nodes
NodeInfo:
type: object
properties:
Expand Down Expand Up @@ -99,9 +100,10 @@ components:
type: object
additionalProperties:
$ref: '#/components/schemas/NodeInfoAggregation'
search_pipelines:
$ref: '#/components/schemas/NodeInfoSearchPipelines'
required:
- attributes
- build_flavor
- build_hash
- build_type
- host
Expand Down Expand Up @@ -345,6 +347,8 @@ components:
$ref: '#/components/schemas/NodeInfoSearch'
ingest:
$ref: '#/components/schemas/NodeInfoSettingsIngest'
index:
$ref: '#/components/schemas/NodeInfoSettingsIndex'
required:
- cluster
- node
Expand All @@ -367,7 +371,6 @@ components:
$ref: '#/components/schemas/DeprecationIndexing'
required:
- name
- election
NodeInfoSettingsClusterElection:
type: object
properties:
Expand All @@ -390,9 +393,7 @@ components:
name:
$ref: '_common.yaml#/components/schemas/Name'
attr:
type: object
additionalProperties:
type: object
$ref: '#/components/schemas/NodeInfoShardIndexingPressureEnabled'
max_local_storage_nodes:
type: string
required:
Expand All @@ -416,7 +417,6 @@ components:
required:
- logs
- home
- repo
NodeInfoRepositories:
type: object
properties:
Expand All @@ -431,13 +431,18 @@ components:
type: string
required:
- allowed_urls
NodeInfoShardIndexingPressureEnabled:
type: object
properties:
shard_indexing_pressure_enabled:
type: string
required:
- shard_indexing_pressure_enabled
NodeInfoDiscover:
type: object
properties:
seed_hosts:
type: string
required:
- seed_hosts
NodeInfoAction:
type: object
properties:
Expand All @@ -456,7 +461,7 @@ components:
type: object
properties:
type:
$ref: '#/components/schemas/NodeInfoSettingsHttpType'
type: string
type.default:
type: string
compression:
Expand All @@ -469,13 +474,6 @@ components:
- type: string
required:
- type
NodeInfoSettingsHttpType:
type: object
properties:
default:
type: string
required:
- default
NodeInfoBootstrap:
type: object
properties:
Expand All @@ -487,18 +485,11 @@ components:
type: object
properties:
type:
$ref: '#/components/schemas/NodeInfoSettingsTransportType'
type: string
type.default:
type: string
required:
- type
NodeInfoSettingsTransportType:
type: object
properties:
default:
type: string
required:
- default
NodeInfoSettingsNetwork:
type: object
properties:
Expand Down Expand Up @@ -615,6 +606,28 @@ components:
type: string
required:
- enabled
NodeInfoSettingsIndex:
type: object
properties:
store:
$ref: '#/components/schemas/NodeInfoSettingsIndexStore'
NodeInfoSettingsIndexStore:
type: object
properties:
hybrid:
$ref: '#/components/schemas/NodeInfoSettingsIndexHybrid'
NodeInfoSettingsIndexHybrid:
type: object
properties:
mmap:
$ref: '#/components/schemas/NodeInfoSettingsIndexStoreMmap'
NodeInfoSettingsIndexStoreMmap:
type: object
properties:
extensions:
type: array
items:
type: string
NodeThreadPoolInfo:
type: object
properties:
Expand Down Expand Up @@ -675,3 +688,24 @@ components:
type: string
required:
- types
NodeInfoSearchPipelines:
type: object
properties:
response_processors:
type: array
items:
$ref: '#/components/schemas/NodeInfoIngestProcessor2'
request_processors:
type: array
items:
$ref: '#/components/schemas/NodeInfoIngestProcessor2'
required:
- response_processors
- request_processors
NodeInfoIngestProcessor2:
type: object
properties:
type:
type: string
required:
- type
6 changes: 1 addition & 5 deletions tests/_core/nodes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ $schema: ../../json_schemas/test_story.schema.yaml
description: Test nodes endpoints.
chapters:
- synopsis: Nodes with a json response.
path: /_cat/aliases
parameters:
format: json
path: /_nodes
method: GET
response:
status: 200
content_type: application/json
payload: []

0 comments on commit 3e72602

Please sign in to comment.