Skip to content

Commit 54e2c95

Browse files
committed
Add yamlRestTest for the fix
Signed-off-by: Daniel Widdis <[email protected]>
1 parent a458f1e commit 54e2c95

File tree

1 file changed

+16
-0
lines changed
  • rest-api-spec/src/main/resources/rest-api-spec/test/search

1 file changed

+16
-0
lines changed

rest-api-spec/src/main/resources/rest-api-spec/test/search/30_limits.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,22 @@ setup:
4444
scroll: 5m
4545
size: 10010
4646

47+
---
48+
"Request with size exceeding max integer value":
49+
- do:
50+
catch: bad_request
51+
search:
52+
rest_total_hits_as_int: true
53+
index: test_1
54+
body:
55+
query:
56+
match_all: {}
57+
size: 2147483648
58+
59+
- match: { status: 400 }
60+
- match: { error.type: input_coercion_exception }
61+
- match: { error.reason: "Numeric value (2147483648) out of range of int (-2147483648 - 2147483647" }
62+
4763
---
4864
"Rescore window limits":
4965
- do:

0 commit comments

Comments
 (0)