-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: /{index}/_open can return a task.
Signed-off-by: dblock <dblock@amazon.com>
- Loading branch information
Showing
5 changed files
with
119 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
$schema: ../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test closing an index. | ||
prologues: | ||
- path: /movies | ||
method: PUT | ||
status: [200] | ||
epilogues: | ||
- path: /movies | ||
method: DELETE | ||
status: [200, 404] | ||
chapters: | ||
- synopsis: Close an index. | ||
path: /{index}/_close | ||
method: POST | ||
parameters: | ||
index: movies | ||
allow_no_indices: true | ||
expand_wildcards: all | ||
ignore_unavailable: true | ||
wait_for_active_shards: 0 | ||
cluster_manager_timeout: 30s | ||
timeout: 30s | ||
response: | ||
status: 200 | ||
payload: | ||
indices: | ||
movies: | ||
closed: true | ||
- synopsis: Close an already closed index. | ||
path: /{index}/_close | ||
method: POST | ||
parameters: | ||
index: movies | ||
response: | ||
status: 200 | ||
payload: | ||
indices: {} |
File renamed without changes.
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,63 @@ | ||
$schema: ../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test opening an index. | ||
prologues: | ||
- path: /movies | ||
method: PUT | ||
status: [200] | ||
- path: /games | ||
method: PUT | ||
status: [200] | ||
- path: /movies/_close | ||
method: POST | ||
status: [200] | ||
- path: /games/_close | ||
method: POST | ||
status: [200] | ||
epilogues: | ||
- path: /movies,games | ||
method: DELETE | ||
status: [200, 404] | ||
chapters: | ||
- synopsis: Open a closed index. | ||
path: /{index}/_open | ||
method: POST | ||
parameters: | ||
index: movies | ||
allow_no_indices: true | ||
expand_wildcards: all | ||
ignore_unavailable: true | ||
wait_for_active_shards: 0 | ||
cluster_manager_timeout: 30s | ||
timeout: 30s | ||
wait_for_completion: true | ||
response: | ||
status: 200 | ||
payload: | ||
shards_acknowledged: true | ||
acknowledged: true | ||
- synopsis: Open a closed index (wait_for_completion=false). | ||
path: /{index}/_open | ||
method: POST | ||
parameters: | ||
index: movies | ||
allow_no_indices: true | ||
expand_wildcards: all | ||
ignore_unavailable: true | ||
wait_for_active_shards: 0 | ||
cluster_manager_timeout: 30s | ||
timeout: 30s | ||
wait_for_completion: false | ||
task_execution_timeout: 1m | ||
response: | ||
status: 200 | ||
- synopsis: Open an already opened index. | ||
path: /{index}/_open | ||
method: POST | ||
parameters: | ||
index: movies | ||
response: | ||
status: 200 | ||
payload: | ||
shards_acknowledged: true | ||
acknowledged: true |
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