From 7f794e7b772cb2107b255b89967a6285748118e9 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Thu, 31 Mar 2016 09:58:49 -0400 Subject: [PATCH] Test for invalid scroll_size --- .../test/update_by_query/20_validation.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/reindex/src/test/resources/rest-api-spec/test/update_by_query/20_validation.yaml b/modules/reindex/src/test/resources/rest-api-spec/test/update_by_query/20_validation.yaml index a0608eda873..658c7c7ebaf 100644 --- a/modules/reindex/src/test/resources/rest-api-spec/test/update_by_query/20_validation.yaml +++ b/modules/reindex/src/test/resources/rest-api-spec/test/update_by_query/20_validation.yaml @@ -26,6 +26,20 @@ index: test size: -4 +--- +"invalid scroll_size fails": + - do: + index: + index: test + type: test + id: 1 + body: { "text": "test" } + - do: + catch: /Failed to parse int parameter [scroll_size] with value [asdf]/ + update_by_query: + index: test + scroll_size: asdf + --- "requests_per_second cannot be an empty string": - do: