@@ -207,39 +207,4 @@ public void testRepositoryVerification() throws Exception {
207
207
assertThat (ex .getMessage (), containsString ("is not shared" ));
208
208
}
209
209
}
210
-
211
- public void testRepositoryVerificationTimeout () throws Exception {
212
- Client client = client ();
213
-
214
- Settings settings = Settings .builder ()
215
- .put ("location" , randomRepoPath ())
216
- .put ("random_control_io_exception_rate" , 1.0 ).build ();
217
- logger .info ("--> creating repository that cannot write any files - should fail" );
218
- assertThrows (client .admin ().cluster ().preparePutRepository ("test-repo-1" )
219
- .setType ("mock" ).setSettings (settings ),
220
- RepositoryVerificationException .class );
221
-
222
- logger .info ("--> creating repository that cannot write any files, but suppress verification - should be acked" );
223
- assertAcked (client .admin ().cluster ().preparePutRepository ("test-repo-1" )
224
- .setType ("mock" ).setSettings (settings ).setVerify (false ));
225
-
226
- logger .info ("--> verifying repository" );
227
- assertThrows (client .admin ().cluster ().prepareVerifyRepository ("test-repo-1" ), RepositoryVerificationException .class );
228
-
229
- Path location = randomRepoPath ();
230
-
231
- logger .info ("--> creating repository" );
232
- try {
233
- client .admin ().cluster ().preparePutRepository ("test-repo-1" )
234
- .setType ("mock" )
235
- .setSettings (Settings .builder ()
236
- .put ("location" , location )
237
- .put ("localize_location" , true )
238
- ).get ();
239
- fail ("RepositoryVerificationException wasn't generated" );
240
- } catch (RepositoryVerificationException ex ) {
241
- assertThat (ex .getMessage (), containsString ("is not shared" ));
242
- }
243
- }
244
-
245
210
}
0 commit comments