From cf2d0834f578177f260b1bb6e865969a33653675 Mon Sep 17 00:00:00 2001 From: David Turner Date: Tue, 24 Oct 2017 11:52:01 +0100 Subject: [PATCH] Remove duplicated test (#27091) --- .../snapshots/RepositoriesIT.java | 35 ------------------- 1 file changed, 35 deletions(-) diff --git a/core/src/test/java/org/elasticsearch/snapshots/RepositoriesIT.java b/core/src/test/java/org/elasticsearch/snapshots/RepositoriesIT.java index 0f6dcec818f..d9d06c26b7d 100644 --- a/core/src/test/java/org/elasticsearch/snapshots/RepositoriesIT.java +++ b/core/src/test/java/org/elasticsearch/snapshots/RepositoriesIT.java @@ -207,39 +207,4 @@ public class RepositoriesIT extends AbstractSnapshotIntegTestCase { assertThat(ex.getMessage(), containsString("is not shared")); } } - - public void testRepositoryVerificationTimeout() throws Exception { - Client client = client(); - - Settings settings = Settings.builder() - .put("location", randomRepoPath()) - .put("random_control_io_exception_rate", 1.0).build(); - logger.info("--> creating repository that cannot write any files - should fail"); - assertThrows(client.admin().cluster().preparePutRepository("test-repo-1") - .setType("mock").setSettings(settings), - RepositoryVerificationException.class); - - logger.info("--> creating repository that cannot write any files, but suppress verification - should be acked"); - assertAcked(client.admin().cluster().preparePutRepository("test-repo-1") - .setType("mock").setSettings(settings).setVerify(false)); - - logger.info("--> verifying repository"); - assertThrows(client.admin().cluster().prepareVerifyRepository("test-repo-1"), RepositoryVerificationException.class); - - Path location = randomRepoPath(); - - logger.info("--> creating repository"); - try { - client.admin().cluster().preparePutRepository("test-repo-1") - .setType("mock") - .setSettings(Settings.builder() - .put("location", location) - .put("localize_location", true) - ).get(); - fail("RepositoryVerificationException wasn't generated"); - } catch (RepositoryVerificationException ex) { - assertThat(ex.getMessage(), containsString("is not shared")); - } - } - }