Skip to content

Commit cf2d083

Browse files
authored
Remove duplicated test (#27091)
1 parent 559fc5a commit cf2d083

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

core/src/test/java/org/elasticsearch/snapshots/RepositoriesIT.java

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -207,39 +207,4 @@ public void testRepositoryVerification() throws Exception {
207207
assertThat(ex.getMessage(), containsString("is not shared"));
208208
}
209209
}
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-
245210
}

0 commit comments

Comments
 (0)