Skip to content

Commit

Permalink
Fixed index naming, description and changelog
Browse files Browse the repository at this point in the history
Signed-off-by: Tatsuya Kawakami <43780506+hogesako@users.noreply.github.com>
  • Loading branch information
hogesako committed Oct 16, 2024
1 parent f3e6158 commit c483acb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Fixed mapping and analysis types ([#600](https://github.com/opensearch-project/opensearch-api-specification/pull/600))
- Fixed `RestStatus` responses in `DELETE /_plugins/_notifications/configs/{config_id}` ([#594](https://github.com/opensearch-project/opensearch-api-specification/pull/594))
- Fixed `GET /_snapshot_/{repository}/{snapshot}` ([#608](https://github.com/opensearch-project/opensearch-api-specification/pull/608))
- Fixed `POST /_snapshot/{repository}/{snapshot}/_restore` when wait_for_completion is false and `GET /{index}/_recovery` ([#611](https://github.com/opensearch-project/opensearch-api-specification/pull/611))
- Fixed `POST /_snapshot/{repository}/{snapshot}/_restore` when `wait_for_completion` is `false` and `GET /{index}/_recovery` ([#611](https://github.com/opensearch-project/opensearch-api-specification/pull/611))

### Security

Expand Down
4 changes: 2 additions & 2 deletions spec/namespaces/snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ components:
type: object
properties:
accepted:
description: Equals `true` if the snapshot was accepted. Present when the request had `wait_for_completion` set to `false`
description: Returns `true` if the snapshot was accepted. Present when the request had `wait_for_completion` set to `false`.
type: boolean
snapshot:
$ref: '../schemas/snapshot._common.yaml#/components/schemas/SnapshotInfo'
Expand Down Expand Up @@ -428,7 +428,7 @@ components:
type: object
properties:
accepted:
description: Equals `true` if the restore was accepted. Present when the request had `wait_for_completion` set to `false`
description: Returns `true` if the restore was accepted. Present when the request had `wait_for_completion` set to `false`.
type: boolean
snapshot:
$ref: '../schemas/snapshot.restore.yaml#/components/schemas/SnapshotRestore'
Expand Down
24 changes: 12 additions & 12 deletions tests/snapshot/snapshot/restore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ epilogues:
status: [200, 404]
parameters:
repository: my-fs-repository
- path: /restore-index-wait-true
- path: /movies
method: DELETE
status: [200, 404]
- path: /restore-index-wait-false
- path: /books
method: DELETE
status: [200, 404]
prologues:
Expand All @@ -29,9 +29,9 @@ prologues:
type: fs
settings:
location: /tmp/opensearch/repo
- path: /restore-index-wait-true
- path: /movies
method: PUT
- path: /restore-index-wait-false
- path: /books
method: PUT
- path: /_snapshot/{repository}/{snapshot}
method: PUT
Expand All @@ -42,15 +42,15 @@ prologues:
request:
payload:
indices:
- restore-index-wait-false
- restore-index-wait-true
- books
- movies
ignore_unavailable: true
include_global_state: false
partial: true
- path: /restore-index-wait-true
- path: /movies
method: DELETE
status: [200, 404]
- path: /restore-index-wait-false
- path: /books
method: DELETE
status: [200, 404]
chapters:
Expand All @@ -63,7 +63,7 @@ chapters:
wait_for_completion: true
request:
payload:
indices: restore-index-wait-true
indices: movies
response:
status: 200
payload:
Expand All @@ -78,7 +78,7 @@ chapters:
wait_for_completion: false
request:
payload:
indices: restore-index-wait-false
indices: books
response:
status: 200
payload:
Expand All @@ -89,11 +89,11 @@ chapters:
multiple-paths-detected: false
method: GET
parameters:
index: restore-index-wait-false
index: books
response:
status: 200
payload:
restore-index-wait-false:
books:
shards:
- stage: DONE
type: SNAPSHOT
Expand Down

0 comments on commit c483acb

Please sign in to comment.