diff --git a/tests/default/indices/alias/alias.yaml b/tests/default/indices/alias/alias.yaml index 4000dbb13..4be447727 100644 --- a/tests/default/indices/alias/alias.yaml +++ b/tests/default/indices/alias/alias.yaml @@ -12,11 +12,28 @@ prologues: index: games chapters: - synopsis: Create an alias. + path: /{index}/_alias/{name} + method: POST + parameters: + index: games + name: jeux + - synopsis: Update an alias. path: /{index}/_alias/{name} method: PUT parameters: index: games name: jeux + - synopsis: Get all aliases from an index. + method: GET + path: /{index}/_alias + parameters: + index: games + response: + status: 200 + payload: + games: + aliases: + jeux: {} - synopsis: Get an alias from index. method: GET path: /{index}/_alias/{name} @@ -25,7 +42,6 @@ chapters: name: jeux response: status: 200 - content_type: application/json payload: games: aliases: @@ -42,6 +58,15 @@ chapters: parameters: index: games name: jeux + - synopsis: Update an alias. + path: /{index}/_alias + method: PUT + parameters: + index: games + request: + payload: + alias: jeux + is_write_index: false - synopsis: Check if alias exists. path: /{index}/_alias/{name} method: HEAD diff --git a/tests/default/indices/aliases/aliases.yaml b/tests/default/indices/aliases/aliases.yaml index 75a1918c1..503188143 100644 --- a/tests/default/indices/aliases/aliases.yaml +++ b/tests/default/indices/aliases/aliases.yaml @@ -9,12 +9,21 @@ prologues: - path: games method: PUT chapters: - - synopsis: Create an alias. + - synopsis: Create an alias by name. path: /{index}/_aliases/{name} method: PUT parameters: index: games name: jeux + - synopsis: Update an alias. + path: /{index}/_aliases + method: PUT + parameters: + index: games + request: + payload: + alias: jeux + is_write_index: false - synopsis: Delete an alias. path: /{index}/_aliases/{name} method: DELETE