Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remaining alias-related tests. #667

Merged
merged 2 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions tests/default/indices/alias/rollover.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test rolling over aliases.
epilogues:
- path: /games
method: DELETE
status: [200, 404]
- path: /rollover
method: DELETE
status: [200, 404]
prologues:
- path: games
method: PUT
- path: /games/_alias/jeux
method: POST
chapters:
- synopsis: Manually roll over an index.
path: /{alias}/_rollover/{new_index}
method: POST
parameters:
alias: jeux
new_index: rollover
response:
status: 200
payload:
acknowledged: true
old_index: games
new_index: rollover
rolled_over: true
11 changes: 10 additions & 1 deletion tests/default/indices/aliases/aliases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,21 @@ prologues:
method: PUT
chapters:
- synopsis: Create an alias by name.
path: /{index}/_aliases/{name}
method: POST
parameters:
index: games
name: jeux
- synopsis: Update an alias by name (query).
path: /{index}/_aliases/{name}
method: PUT
parameters:
index: games
name: jeux
- synopsis: Update an alias.
request:
payload:
is_write_index: true
- synopsis: Update an alias by name (payload).
path: /{index}/_aliases
method: PUT
parameters:
Expand Down
2 changes: 0 additions & 2 deletions tests/default/indices/data_stream/rollover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ epilogues:
status: [200, 404]
chapters:
- synopsis: Manually roll over a data stream.
warnings:
multiple-paths-detected: false
path: /{alias}/_rollover
method: POST
parameters:
Expand Down
Loading