Skip to content

Commit

Permalink
Updating descriptions of specs
Browse files Browse the repository at this point in the history
Signed-off-by: Harsh Garg <[email protected]>
  • Loading branch information
Harsh Garg committed Oct 22, 2024
1 parent a8990d3 commit f1d0e24
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
tests: plugins/streaming
- version: 2.18.0
hub: opensearchstaging
ref: '@sha256:4445e195c53992038891519dc3be0d273cdaad1b047943d68921168ed243e7e9'
ref: '@sha256:83e56824438188322f2d477b262e4b55aa3e4d0c03c6f9b2f27de4ecfafc9a62'
- version: 3.0.0
hub: opensearchstaging
ref: '@sha256:727643acdfebed77bfdb26362dbcff536b7ea02a0cc4ae2da2521729171333de'
ref: '@sha256:dac5f937714616e99f698af9ce07610043c38e34abc9e19f48d1a12f0680ea17'

name: test-opensearch-spec (version=${{ matrix.entry.version }}, hub=${{ matrix.entry.hub || 'opensearchproject' }}, tests=${{ matrix.entry.tests || 'default' }})
runs-on: ubuntu-latest
Expand Down
12 changes: 6 additions & 6 deletions spec/namespaces/list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ paths:
operationId: list.indices.0
x-operation-group: list.indices
x-version-added: '2.18'
description: 'Returns information about indices in a paginated fashion: number of primaries and replicas, document counts, disk size, ...'
description: 'Returns paginated information about indices including number of primaries and replicas, document counts, disk size, etc.'
externalDocs:
url: https://opensearch.org/docs/latest/api-reference/list/list-indices/
parameters:
Expand Down Expand Up @@ -49,7 +49,7 @@ paths:
operationId: list.indices.1
x-operation-group: list.indices
x-version-added: '2.18'
description: 'Returns information about indices in a paginated fashion: number of primaries and replicas, document counts, disk size, ...'
description: 'Returns paginated information about indices including number of primaries and replicas, document counts, disk size, etc.'
externalDocs:
url: https://opensearch.org/docs/latest/api-reference/list/list-indices/
parameters:
Expand Down Expand Up @@ -79,7 +79,7 @@ paths:
operationId: list.shards.0
x-operation-group: list.shards
x-version-added: '2.18'
description: Provides a detailed view of shard allocation on nodes in a paginated fashion.
description: Returns paginated details of shard allocation on nodes.
externalDocs:
url: https://opensearch.org/docs/latest/api-reference/list/list-shards/
parameters:
Expand All @@ -104,7 +104,7 @@ paths:
operationId: list.shards.1
x-operation-group: list.shards
x-version-added: '2.18'
description: Provides a detailed view of shard allocation on nodes in a paginated fashion.
description: Returns paginated details of shard allocation on nodes.
externalDocs:
url: https://opensearch.org/docs/latest/api-reference/list/list-shards/
parameters:
Expand Down Expand Up @@ -361,7 +361,7 @@ components:
list.indices::query.sort:
name: sort
in: query
description: Defines order in which indices will be displayed. If "desc", most recently created indices would be displayed first.
description: Defines order in which indices will be displayed. Accepted values are `asc` and `desc`. If `desc`, most recently created indices would be displayed first.
schema:
type: string
enum:
Expand Down Expand Up @@ -477,7 +477,7 @@ components:
list.shards::query.sort:
name: sort
in: query
description: Defines order in which shards will be displayed. If "desc", most recently created shards would be displayed first.
description: Defines order in which shards will be displayed. Accepted values are `asc` and `desc`. If `desc`, most recently created shards would be displayed first.
schema:
type: string
enum:
Expand Down
13 changes: 1 addition & 12 deletions tests/default/list/indices.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test _list/indices endpoints.
version: '>= 2.18'
prologues:
- path: /{index}
method: PUT
Expand Down Expand Up @@ -29,14 +30,12 @@ epilogues:
status: [200, 404]
chapters:
- synopsis: List information related to indexes (text/plain).
version: '>= 2.18'
method: GET
path: /_list/indices
response:
status: 200
content_type: text/plain
- synopsis: List information related to one index (text/plain).
version: '>= 2.18'
method: GET
path: /_list/indices/{index}
parameters:
Expand All @@ -45,7 +44,6 @@ chapters:
status: 200
content_type: text/plain
- synopsis: List information related to indexes with verbose output (v=true).
version: '>= 2.18'
method: GET
path: /_list/indices
parameters:
Expand All @@ -54,7 +52,6 @@ chapters:
status: 200
content_type: text/plain
- synopsis: List information related to indexes with headers (h=header1,header2).
version: '>= 2.18'
method: GET
path: /_list/indices
parameters:
Expand All @@ -65,7 +62,6 @@ chapters:
status: 200
content_type: text/plain
- synopsis: List information related to indexes displaying all available headers (help=true).
version: '>= 2.18'
method: GET
path: /_list/indices
parameters:
Expand All @@ -74,7 +70,6 @@ chapters:
status: 200
content_type: text/plain
- synopsis: List information related to indexes with sorted results.
version: '>= 2.18'
method: GET
path: /_list/indices
parameters:
Expand All @@ -84,7 +79,6 @@ chapters:
status: 200
content_type: text/plain
- synopsis: List information related to indexes with bytes, time and all fields.
version: '>= 2.18'
method: GET
path: /_list/indices
parameters:
Expand All @@ -97,7 +91,6 @@ chapters:
status: 200
content_type: application/json
- synopsis: List information related to indexes with all fields.
version: '>= 2.18'
method: GET
path: /_list/indices
parameters:
Expand All @@ -106,7 +99,6 @@ chapters:
status: 200
content_type: application/json
- synopsis: List information related to indexes in different formats (format=json).
version: '>= 2.18'
method: GET
path: /_list/indices
parameters:
Expand All @@ -115,7 +107,6 @@ chapters:
status: 200
content_type: application/json
- synopsis: List information related to indexes in different formats (format=yaml).
version: '>= 2.18'
method: GET
path: /_list/indices
parameters:
Expand All @@ -124,7 +115,6 @@ chapters:
status: 200
content_type: application/yaml
- synopsis: List information related to indexes in different formats (format=cbor).
version: '>= 2.18'
distributions:
excluded:
- amazon-managed
Expand All @@ -137,7 +127,6 @@ chapters:
status: 200
content_type: application/cbor
- synopsis: List information related to indexes in different formats (format=smile).
version: '>= 2.18'
distributions:
excluded:
- amazon-managed
Expand Down
3 changes: 1 addition & 2 deletions tests/default/list/shards.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test list/shards endpoints.
version: '>= 2.18'
prologues:
- path: /{index}
method: PUT
Expand All @@ -27,15 +28,13 @@ epilogues:
status: [200, 404]
chapters:
- synopsis: List the state of all primary and replica shards and how they are distributed.
version: '>= 2.18'
path: /_list/shards
method: GET
parameters:
format: json
h:
- '*'
- synopsis: List the state of all primary and replica shards and how they are distributed for an index.
version: '>= 2.18'
path: /_list/shards/{index}
method: GET
parameters:
Expand Down

0 comments on commit f1d0e24

Please sign in to comment.