From 98671d0a2bfa6f2d925a3bc34266041616f97616 Mon Sep 17 00:00:00 2001 From: carlosdelest Date: Wed, 5 Jun 2024 13:15:21 +0200 Subject: [PATCH] Group limit tests together for bwc --- .../test/synonyms/20_synonyms_get.yml | 38 +++++++++---------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/20_synonyms_get.yml b/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/20_synonyms_get.yml index 4248cd1465bc5..3494f33466ce4 100644 --- a/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/20_synonyms_get.yml +++ b/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/20_synonyms_get.yml @@ -56,7 +56,21 @@ setup: id: "test-id-2" --- -"Pagination - invalid size": +"Pagination - invalid size and from": + - do: + catch: bad_request + synonyms.get_synonym: + id: test-get-synonyms + size: -1 + + - do: + catch: bad_request + synonyms.get_synonym: + id: test-get-synonyms + from: -1 + +--- +"Pagination - synonym max size exceeded": - requires: cluster_features: ["gte_v8.15.0"] reason: Synonym size checks introduced in 8.15.0 @@ -65,13 +79,13 @@ setup: catch: bad_request synonyms.get_synonym: id: test-get-synonyms - size: -1 + size: 100001 - do: catch: bad_request synonyms.get_synonym: id: test-get-synonyms - size: 100001 + from: 100001 --- "Pagination - from": @@ -89,24 +103,6 @@ setup: - synonyms: "test => check" id: "test-id-3" ---- -"Pagination - invalid from": - - requires: - cluster_features: ["gte_v8.15.0"] - reason: Synonym size checks introduced in 8.15.0 - - - do: - catch: bad_request - synonyms.get_synonym: - id: test-get-synonyms - from: -1 - - - do: - catch: bad_request - synonyms.get_synonym: - id: test-get-synonyms - from: 100001 - --- "Synonyms set with same IDs": - do: