From f1d85432a46f454d47d2bfd8b8d07f875a917390 Mon Sep 17 00:00:00 2001 From: dblock Date: Mon, 11 Nov 2024 16:22:59 -0500 Subject: [PATCH] Added tests for missing alias/aliases combinations. Signed-off-by: dblock --- tests/default/indices/alias/alias.yaml | 27 +++++++++++++++++++++- tests/default/indices/aliases/aliases.yaml | 11 ++++++++- 2 files changed, 36 insertions(+), 2 deletions(-) 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