File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
client/rest-high-level/src/test/java/org/elasticsearch/client Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 167167import static org .hamcrest .CoreMatchers .equalTo ;
168168import static org .hamcrest .Matchers .hasEntry ;
169169import static org .hamcrest .Matchers .hasKey ;
170+ import static org .hamcrest .Matchers .is ;
170171import static org .hamcrest .Matchers .notNullValue ;
171172import static org .hamcrest .Matchers .nullValue ;
172173
@@ -1958,12 +1959,15 @@ public void testSnapshotsStatus() {
19581959 SnapshotsStatusRequest snapshotsStatusRequest = new SnapshotsStatusRequest (repository , snapshots );
19591960 setRandomMasterTimeout (snapshotsStatusRequest , expectedParams );
19601961 snapshotsStatusRequest .ignoreUnavailable (ignoreUnavailable );
1961- expectedParams .put ("ignore_unavailable" , Boolean .toString (ignoreUnavailable ));
1962+ if (ignoreUnavailable ) {
1963+ expectedParams .put ("ignore_unavailable" , Boolean .toString (true ));
1964+ }
19621965
19631966 Request request = RequestConverters .snapshotsStatus (snapshotsStatusRequest );
19641967 assertThat (request .getEndpoint (), equalTo (endpoint ));
19651968 assertThat (request .getMethod (), equalTo (HttpGet .METHOD_NAME ));
19661969 assertThat (request .getParameters (), equalTo (expectedParams ));
1970+ assertThat (request .getEntity (), is (nullValue ()));
19671971 }
19681972
19691973 public void testDeleteSnapshot () {
You can’t perform that action at this time.
0 commit comments