File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
x-pack/plugin/security/src/internalClusterTest/java/org/elasticsearch/integration Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 99
1010import org .elasticsearch .ElasticsearchSecurityException ;
1111import org .elasticsearch .action .DocWriteRequest ;
12- import org .elasticsearch .action .admin .indices .get .GetIndexRequest ;
12+ import org .elasticsearch .action .admin .indices .get .GetIndexRequestBuilder ;
1313import org .elasticsearch .action .admin .indices .refresh .RefreshRequest ;
1414import org .elasticsearch .action .admin .indices .rollover .RolloverRequest ;
1515import org .elasticsearch .action .admin .indices .stats .IndicesStatsRequest ;
3434import org .elasticsearch .cluster .service .ClusterService ;
3535import org .elasticsearch .common .compress .CompressedXContent ;
3636import org .elasticsearch .core .Strings ;
37+ import org .elasticsearch .core .TimeValue ;
3738import org .elasticsearch .datastreams .DataStreamsPlugin ;
3839import org .elasticsearch .index .Index ;
3940import org .elasticsearch .index .mapper .extras .MapperExtrasPlugin ;
@@ -236,7 +237,9 @@ public void testFailureStoreAuthorziation() throws Exception {
236237 }
237238
238239 indicesAdmin ().refresh (new RefreshRequest (dataStreamName )).actionGet ();
239- var getResp = failuresClient .admin ().indices ().getIndex (new GetIndexRequest ().indices (dataStreamName + "::*" ));
240+ var getResp = failuresClient .admin ()
241+ .indices ()
242+ .getIndex (new GetIndexRequestBuilder (failuresClient , TimeValue .THIRTY_SECONDS ).addIndices (dataStreamName + "::*" ).request ());
240243 var searchResponse = failuresClient .prepareSearch (dataStreamName + "::failures" ).get ();
241244 assertThat (searchResponse .getHits ().getTotalHits ().value (), equalTo (1L ));
242245 }
You can’t perform that action at this time.
0 commit comments