From 3e726025c36719ef9cb7161e14882b03677a8685 Mon Sep 17 00:00:00 2001 From: Bzil Date: Tue, 2 Jul 2024 17:39:42 +0200 Subject: [PATCH] Change test and fix it Signed-off-by: Bzil --- spec/schemas/_common.yaml | 4 +- spec/schemas/nodes.info.yaml | 86 +++++++++++++++++++++++++----------- tests/_core/nodes.yaml | 6 +-- 3 files changed, 64 insertions(+), 32 deletions(-) diff --git a/spec/schemas/_common.yaml b/spec/schemas/_common.yaml index 297cd3ec..713509ee 100644 --- a/spec/schemas/_common.yaml +++ b/spec/schemas/_common.yaml @@ -1106,6 +1106,8 @@ components: $ref: '#/components/schemas/VersionString' licensed: type: boolean + custom_foldername: + type: string opensearch_version: $ref: '#/components/schemas/VersionString' required: @@ -1117,7 +1119,6 @@ components: - java_version - name - version - - licensed NodeStatistics: type: object properties: @@ -1690,6 +1691,7 @@ components: - transform - remote_cluster_client - coordinating_only + - cluster_manager HttpHeaders: type: object additionalProperties: diff --git a/spec/schemas/nodes.info.yaml b/spec/schemas/nodes.info.yaml index 8846a4e0..f687b452 100644 --- a/spec/schemas/nodes.info.yaml +++ b/spec/schemas/nodes.info.yaml @@ -21,10 +21,8 @@ components: - aggregations - indices - search_pipelines - - _all ResponseBase: allOf: - - $ref: 'nodes._common.yaml#/components/schemas/NodesResponseBase' - type: object properties: cluster_name: @@ -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: @@ -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 @@ -345,6 +347,8 @@ components: $ref: '#/components/schemas/NodeInfoSearch' ingest: $ref: '#/components/schemas/NodeInfoSettingsIngest' + index: + $ref: '#/components/schemas/NodeInfoSettingsIndex' required: - cluster - node @@ -367,7 +371,6 @@ components: $ref: '#/components/schemas/DeprecationIndexing' required: - name - - election NodeInfoSettingsClusterElection: type: object properties: @@ -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: @@ -416,7 +417,6 @@ components: required: - logs - home - - repo NodeInfoRepositories: type: object properties: @@ -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: @@ -456,7 +461,7 @@ components: type: object properties: type: - $ref: '#/components/schemas/NodeInfoSettingsHttpType' + type: string type.default: type: string compression: @@ -469,13 +474,6 @@ components: - type: string required: - type - NodeInfoSettingsHttpType: - type: object - properties: - default: - type: string - required: - - default NodeInfoBootstrap: type: object properties: @@ -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: @@ -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: @@ -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 \ No newline at end of file diff --git a/tests/_core/nodes.yaml b/tests/_core/nodes.yaml index 878c13b6..608232cb 100644 --- a/tests/_core/nodes.yaml +++ b/tests/_core/nodes.yaml @@ -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: [] \ No newline at end of file