-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separated merger and tester fixtures.
Signed-off-by: dblock <[email protected]>
- Loading branch information
Showing
19 changed files
with
250 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
tools/tests/merger/fixtures/specs/opensearch/_global_parameters.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: '' | ||
version: '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
$schema: should-be-ignored | ||
|
||
title: OpenSearch API | ||
description: OpenSearch API | ||
version: 1.0.0 | ||
x-api-version: 1.2.3 |
1 change: 1 addition & 0 deletions
1
tools/tests/merger/fixtures/specs/opensearch/_superseded_operations.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$schema: should-be-ignored |
17 changes: 17 additions & 0 deletions
17
tools/tests/merger/fixtures/specs/opensearch/namespaces/cluster_manager.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: OpenSearch API | ||
description: OpenSearch API | ||
version: 1.0.0 | ||
paths: | ||
/cluster_manager: | ||
get: | ||
operationId: cluster_manager.0 | ||
x-version-added: '2.0' | ||
post: | ||
operationId: cluster_manager.0 | ||
x-version-added: '2.0' | ||
components: | ||
requestBodies: [] | ||
parameters: [] | ||
responses: [] |
109 changes: 109 additions & 0 deletions
109
tools/tests/merger/fixtures/specs/opensearch/namespaces/index.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: OpenSearch API | ||
description: OpenSearch API | ||
version: 1.0.0 | ||
paths: | ||
/index: | ||
get: | ||
operationId: get.0 | ||
responses: | ||
'200': | ||
$ref: '#/components/responses/info@200' | ||
'201': | ||
$ref: '#/components/responses/info@201' | ||
'404': | ||
$ref: '#/components/responses/info@404' | ||
added-2.0: | ||
$ref: '#/components/responses/[email protected]' | ||
x-version-added: '2.0' | ||
removed-2.0: | ||
$ref: '#/components/responses/[email protected]' | ||
x-version-removed: '2.0' | ||
added-1.3-removed-2.0: | ||
$ref: '#/components/responses/[email protected]' | ||
added-2.1: | ||
$ref: '#/components/responses/[email protected]' | ||
'500': | ||
$ref: '#/components/responses/info@500' | ||
'503': | ||
$ref: '#/components/responses/info@503' | ||
distributed-included-all: | ||
$ref: '#/components/responses/info@distributed-all' | ||
x-distributions-included: | ||
- amazon-managed | ||
- amazon-serverless | ||
- opensearch.org | ||
distributed-included-amazon-managed: | ||
$ref: '#/components/responses/info@distributed-amazon-managed' | ||
x-distributions-included: | ||
- amazon-managed | ||
distributed-excluded-amazon-serverless: | ||
$ref: '#/components/responses/info@distributed-all' | ||
x-distributions-excluded: | ||
- amazon-serverless | ||
components: | ||
responses: | ||
info@200: | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
_type: | ||
$ref: '../schemas/_common.yaml#/components/schemas/Type' | ||
tagline: | ||
type: string | ||
required: | ||
- tagline | ||
info@201: | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
tagline: | ||
type: string | ||
required: | ||
- tagline | ||
unevaluatedProperties: true | ||
info@404: | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
tagline: | ||
type: string | ||
required: | ||
- tagline | ||
unevaluatedProperties: | ||
type: object | ||
[email protected]: | ||
description: Added in 2.0 via attribute next to ref. | ||
[email protected]: | ||
description: Removed in 2.0 via attribute next to ref. | ||
[email protected]: | ||
description: Added in 1.3, removed in 2.0 via attribute in response body. | ||
x-version-added: '1.3' | ||
x-version-removed: '2.0' | ||
[email protected]: | ||
description: Added in 2.1 via attribute in response body. | ||
x-version-added: '2.1' | ||
info@distributed-amazon-managed: | ||
description: Distributed only in AOS. | ||
info@distributed-all: | ||
description: Distributed in opensearch.org, AOS and AOSS. | ||
info@500: | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
tagline: | ||
type: string | ||
info@503: | ||
content: | ||
application/json: | ||
schema: | ||
type: object |
90 changes: 90 additions & 0 deletions
90
tools/tests/merger/fixtures/specs/opensearch/namespaces/nodes.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: OpenSearch API | ||
description: OpenSearch API | ||
version: 1.0.0 | ||
paths: | ||
/nodes: | ||
get: | ||
operationId: nodes.0 | ||
responses: | ||
'200': | ||
$ref: '#/components/responses/nodes.info@200' | ||
/_nodes/{id}: | ||
get: | ||
operationId: nodes.info.1 | ||
x-operation-group: nodes.info | ||
x-version-added: '1.0' | ||
description: Returns information about nodes in the cluster. | ||
parameters: | ||
- $ref: '#/components/parameters/nodes.info::path.id' | ||
responses: | ||
'200': | ||
$ref: '#/components/responses/nodes.info@200' | ||
post: | ||
operationId: nodes.info.1 | ||
x-operation-group: nodes.info | ||
x-version-added: '2.0' | ||
description: Returns information about nodes in the cluster. | ||
parameters: | ||
- $ref: '#/components/parameters/nodes.info::path.id' | ||
- $ref: '#/components/parameters/nodes.info::query.flag' | ||
requestBody: | ||
$ref: '#/components/requestBodies/nodes.info' | ||
responses: | ||
'201': | ||
$ref: '#/components/responses/nodes.info@201' | ||
'200': | ||
$ref: '#/components/responses/nodes.info@200' | ||
components: | ||
requestBodies: | ||
nodes.info: | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
_all: | ||
type: boolean | ||
ids: | ||
$ref: '../schemas/_common.yaml#/components/schemas/Ids' | ||
x-version-added: '2.0' | ||
description: Nodes options. | ||
parameters: | ||
nodes.info::path.id: | ||
in: path | ||
name: id | ||
description: Node ID. | ||
required: true | ||
schema: | ||
type: string | ||
nodes.info::query.flag: | ||
in: query | ||
name: flag | ||
description: Flag. | ||
required: false | ||
schema: | ||
type: boolean | ||
default: false | ||
nodes.info::query.new: | ||
in: query | ||
name: new | ||
description: New option added in 2.1. | ||
required: false | ||
x-version-added: '2.1' | ||
schema: | ||
type: array | ||
default: false | ||
responses: | ||
nodes.info@200: | ||
description: All nodes. | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
nodes.info@201: | ||
description: All nodes. | ||
content: | ||
application/json: | ||
schema: | ||
type: object |
18 changes: 18 additions & 0 deletions
18
tools/tests/merger/fixtures/specs/opensearch/schemas/_common.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: Schemas of _common category | ||
description: Schemas of _common category | ||
version: 1.0.0 | ||
components: | ||
schemas: | ||
Type: | ||
type: string | ||
x-version-removed: '2.0' | ||
OldId: | ||
type: string | ||
Ids: | ||
oneOf: | ||
- $ref: '#/components/schemas/OldId' | ||
- type: array | ||
items: | ||
$ref: '#/components/schemas/Ids' |