-
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.
Signed-off-by: dblock <[email protected]>
- Loading branch information
Showing
4 changed files
with
73 additions
and
24 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
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,44 @@ | ||
$schema: ../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test index configuration that would be applied by a particular index template. | ||
epilogues: | ||
- path: /_index_template/daily_logs | ||
method: DELETE | ||
status: [200, 404] | ||
prologues: | ||
- path: /_index_template/daily_logs | ||
method: POST | ||
request: | ||
payload: | ||
index_patterns: | ||
- 'logs*' | ||
priority: 0 | ||
template: | ||
mappings: | ||
properties: | ||
text: | ||
type: text | ||
settings: | ||
number_of_shards: 2 | ||
number_of_replicas: 2 | ||
chapters: | ||
- synopsis: Simulate a template configuration. | ||
path: /_index_template/_simulate | ||
method: POST | ||
parameters: | ||
cause: Testing. | ||
create: false | ||
request: | ||
payload: | ||
index_patterns: | ||
- 'logs*' | ||
priority: 1 | ||
template: | ||
settings: | ||
number_of_shards: 2 | ||
number_of_replicas: 2 | ||
- synopsis: Get the index configuration that would be applied by the `daily_logs` index template. | ||
path: /_index_template/_simulate/{name} | ||
method: POST | ||
parameters: | ||
name: daily_logs |
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,29 @@ | ||
$schema: ../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test index configuration that would be applied by a particular index template. | ||
prologues: | ||
- path: /_index_template/daily_logs | ||
method: POST | ||
request: | ||
payload: | ||
index_patterns: | ||
- 'logs*' | ||
priority: 0 | ||
template: | ||
mappings: | ||
properties: | ||
text: | ||
type: text | ||
settings: | ||
number_of_shards: 2 | ||
number_of_replicas: 2 | ||
epilogues: | ||
- path: /_index_template/daily_logs | ||
method: DELETE | ||
status: [200, 404] | ||
chapters: | ||
- synopsis: Simulate matching the `logs-today` name against the `logs*` index template. | ||
path: /_index_template/_simulate_index/{name} | ||
method: POST | ||
parameters: | ||
name: logs-today |