@@ -1536,7 +1536,7 @@ public void testFieldCaps() {
1536
1536
endpoint .add ("_field_caps" );
1537
1537
1538
1538
assertEquals (endpoint .toString (), request .getEndpoint ());
1539
- assertEquals (4 , request .getParameters ().size ());
1539
+ assertEquals (5 , request .getParameters ().size ());
1540
1540
1541
1541
// Note that we don't check the field param value explicitly, as field names are
1542
1542
// passed through
@@ -1570,7 +1570,7 @@ public void testRankEval() throws Exception {
1570
1570
}
1571
1571
endpoint .add (RestRankEvalAction .ENDPOINT );
1572
1572
assertEquals (endpoint .toString (), request .getEndpoint ());
1573
- assertEquals (3 , request .getParameters ().size ());
1573
+ assertEquals (4 , request .getParameters ().size ());
1574
1574
assertEquals (expectedParams , request .getParameters ());
1575
1575
assertToXContentBody (spec , request .getEntity ());
1576
1576
}
@@ -1897,7 +1897,8 @@ static void setRandomIndicesOptions(Consumer<IndicesOptions> setter, Supplier<In
1897
1897
Map <String , String > expectedParams ) {
1898
1898
1899
1899
if (randomBoolean ()) {
1900
- setter .accept (IndicesOptions .fromOptions (randomBoolean (), randomBoolean (), randomBoolean (), randomBoolean ()));
1900
+ setter .accept (IndicesOptions .fromOptions (randomBoolean (), randomBoolean (), randomBoolean (), randomBoolean (),
1901
+ true , false , false , randomBoolean ()));
1901
1902
}
1902
1903
expectedParams .put ("ignore_unavailable" , Boolean .toString (getter .get ().ignoreUnavailable ()));
1903
1904
expectedParams .put ("allow_no_indices" , Boolean .toString (getter .get ().allowNoIndices ()));
@@ -1910,11 +1911,13 @@ static void setRandomIndicesOptions(Consumer<IndicesOptions> setter, Supplier<In
1910
1911
} else {
1911
1912
expectedParams .put ("expand_wildcards" , "none" );
1912
1913
}
1914
+ expectedParams .put ("ignore_throttled" , Boolean .toString (getter .get ().ignoreThrottled ()));
1913
1915
}
1914
1916
1915
1917
static IndicesOptions setRandomIndicesOptions (IndicesOptions indicesOptions , Map <String , String > expectedParams ) {
1916
1918
if (randomBoolean ()) {
1917
- indicesOptions = IndicesOptions .fromOptions (randomBoolean (), randomBoolean (), randomBoolean (), randomBoolean ());
1919
+ indicesOptions = IndicesOptions .fromOptions (randomBoolean (), randomBoolean (), randomBoolean (), randomBoolean (),
1920
+ true , false , false , randomBoolean ());
1918
1921
}
1919
1922
expectedParams .put ("ignore_unavailable" , Boolean .toString (indicesOptions .ignoreUnavailable ()));
1920
1923
expectedParams .put ("allow_no_indices" , Boolean .toString (indicesOptions .allowNoIndices ()));
@@ -1927,6 +1930,7 @@ static IndicesOptions setRandomIndicesOptions(IndicesOptions indicesOptions, Map
1927
1930
} else {
1928
1931
expectedParams .put ("expand_wildcards" , "none" );
1929
1932
}
1933
+ expectedParams .put ("ignore_throttled" , Boolean .toString (indicesOptions .ignoreThrottled ()));
1930
1934
return indicesOptions ;
1931
1935
}
1932
1936
0 commit comments