From 8fff92a31e950db5a6bf218effbfb923af3a2577 Mon Sep 17 00:00:00 2001 From: carlosdelest Date: Mon, 21 Oct 2024 20:53:04 +0200 Subject: [PATCH] Fix test --- .../rest-api-spec/test/synonyms/10_synonyms_put.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/10_synonyms_put.yml b/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/10_synonyms_put.yml index a8ef6323f1210..7fdfb9c79911b 100644 --- a/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/10_synonyms_put.yml +++ b/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/10_synonyms_put.yml @@ -15,6 +15,18 @@ setup: - match: { result: "created" } + - do: + cluster.health: + index: .synonyms-2 + level: shards + timeout: 60s + wait_for_status: yellow + wait_for_no_initializing_shards: true + + - do: + synonyms.get_synonym: + id: test-update-synonyms + - is_true: synonyms_set.0.id - is_true: synonyms_set.1.id