Skip to content

Commit

Permalink
Added distributions/included and excluded. (#510)
Browse files Browse the repository at this point in the history
* Added distributions/included and excluded.

Signed-off-by: dblock <[email protected]>

* Test distribution before version.

Signed-off-by: dblock <[email protected]>

* Passing npm run test:spec -- --opensearch-distribution=amazon-managed against Amazon OpenSearch 2.13.

Signed-off-by: dblock <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock authored Aug 14, 2024
1 parent 7dee041 commit df34927
Show file tree
Hide file tree
Showing 68 changed files with 610 additions and 81 deletions.
9 changes: 6 additions & 3 deletions TESTING_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,16 @@ OpenSearch consists of plugins that may or may not be present in various distrib
description: Returns basic information about the cluster.
```
Similarly, skip tests that are not applicable to a distribution by listing the distributions that support it.
Similarly, skip tests that are not applicable to a distribution by listing the distributions that support or do not support it.
```yaml
description: Test root endpoint.
distributions:
- amazon-managed
- opensearch.org
included:
- amazon-managed
- opensearch.org
excluded:
- amazon-serverless
chapters:
- synopsis: Get server info.
path: /
Expand Down
10 changes: 10 additions & 0 deletions json_schemas/test_story.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,16 @@ definitions:
type: string

Distributions:
description: |
The list of distributions that support this API.
type: object
properties:
included:
$ref: '#/definitions/DistributionsList'
excluded:
$ref: '#/definitions/DistributionsList'

DistributionsList:
description: |
The list of distributions that support this API.
type: array
Expand Down
3 changes: 3 additions & 0 deletions spec/namespaces/cat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,9 @@ paths:
operationId: cat.nodeattrs.0
x-operation-group: cat.nodeattrs
x-version-added: '1.0'
x-distributions-excluded:
- amazon-managed
- amazon-serverless
description: Returns information about custom node attributes.
externalDocs:
url: https://opensearch.org/docs/latest/api-reference/cat/cat-nodeattrs/
Expand Down
15 changes: 15 additions & 0 deletions spec/namespaces/indices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ paths:
operationId: indices.clear_cache.0
x-operation-group: indices.clear_cache
x-version-added: '1.0'
x-distributions-excluded:
- amazon-managed
- amazon-serverless
description: Clears all or specific caches for one or more indices.
externalDocs:
url: https://opensearch.org/docs/latest/api-reference/index-apis/clear-index-cache/
Expand Down Expand Up @@ -319,6 +322,9 @@ paths:
operationId: indices.forcemerge.0
x-operation-group: indices.forcemerge
x-version-added: '1.0'
x-distributions-excluded:
- amazon-managed
- amazon-serverless
description: Performs the force merge operation on one or more indices.
externalDocs:
url: https://opensearch.org/docs/latest
Expand Down Expand Up @@ -589,6 +595,9 @@ paths:
operationId: indices.segments.0
x-operation-group: indices.segments
x-version-added: '1.0'
x-distributions-excluded:
- amazon-managed
- amazon-serverless
description: Provides low-level information about segments in a Lucene index.
externalDocs:
url: https://opensearch.org/docs/latest
Expand All @@ -605,6 +614,9 @@ paths:
operationId: indices.get_settings.0
x-operation-group: indices.get_settings
x-version-added: '1.0'
x-distributions-excluded:
- amazon-managed
- amazon-serverless
description: Returns settings for one or more indices.
externalDocs:
url: https://opensearch.org/docs/latest/api-reference/index-apis/get-settings/
Expand Down Expand Up @@ -1564,6 +1576,9 @@ paths:
operationId: indices.segments.1
x-operation-group: indices.segments
x-version-added: '1.0'
x-distributions-excluded:
- amazon-managed
- amazon-serverless
description: Provides low-level information about segments in a Lucene index.
externalDocs:
url: https://opensearch.org/docs/latest
Expand Down
Loading

0 comments on commit df34927

Please sign in to comment.