From 6e1ab497574d4345a7a7e29a612619d44eecdcb1 Mon Sep 17 00:00:00 2001 From: David Pilato Date: Fri, 18 Apr 2014 11:30:02 +0200 Subject: [PATCH] Update to elasticsearch 1.1.1 (Impact only on tests as test framework moved a bit) (cherry picked from commit e5a32c0) --- pom.xml | 2 +- .../repositories/azure/AzureSnapshotRestoreITest.java | 4 ++-- .../repositories/azure/AzureSnapshotRestoreTest.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 613cd6fe103..b5128dcdc1f 100644 --- a/pom.xml +++ b/pom.xml @@ -44,7 +44,7 @@ governing permissions and limitations under the License. --> 2.0.0-SNAPSHOT - 4.7.0 + 4.7.1 onerror 1 true diff --git a/src/test/java/org/elasticsearch/repositories/azure/AzureSnapshotRestoreITest.java b/src/test/java/org/elasticsearch/repositories/azure/AzureSnapshotRestoreITest.java index 33220cad250..bcf66355ae3 100644 --- a/src/test/java/org/elasticsearch/repositories/azure/AzureSnapshotRestoreITest.java +++ b/src/test/java/org/elasticsearch/repositories/azure/AzureSnapshotRestoreITest.java @@ -147,7 +147,7 @@ public class AzureSnapshotRestoreITest extends AbstractAzureTest { // Test restore after index deletion logger.info("--> delete indices"); - wipeIndices("test-idx-1", "test-idx-2"); + cluster().wipeIndices("test-idx-1", "test-idx-2"); logger.info("--> restore one index after deletion"); restoreSnapshotResponse = client.admin().cluster().prepareRestoreSnapshot("test-repo", "test-snap").setWaitForCompletion(true).setIndices("test-idx-*", "-test-idx-2").execute().actionGet(); assertThat(restoreSnapshotResponse.getRestoreInfo().totalShards(), greaterThan(0)); @@ -204,7 +204,7 @@ public class AzureSnapshotRestoreITest extends AbstractAzureTest { // Test restore after index deletion logger.info("--> delete indices"); - wipeIndices("test-idx-1", "test-idx-2"); + cluster().wipeIndices("test-idx-1", "test-idx-2"); logger.info("--> restore one index after deletion from snapshot 1"); RestoreSnapshotResponse restoreSnapshotResponse1 = client.admin().cluster().prepareRestoreSnapshot("test-repo1", "test-snap").setWaitForCompletion(true).setIndices("test-idx-1").execute().actionGet(); assertThat(restoreSnapshotResponse1.getRestoreInfo().totalShards(), greaterThan(0)); diff --git a/src/test/java/org/elasticsearch/repositories/azure/AzureSnapshotRestoreTest.java b/src/test/java/org/elasticsearch/repositories/azure/AzureSnapshotRestoreTest.java index 03b808cd654..e28a8261c87 100644 --- a/src/test/java/org/elasticsearch/repositories/azure/AzureSnapshotRestoreTest.java +++ b/src/test/java/org/elasticsearch/repositories/azure/AzureSnapshotRestoreTest.java @@ -104,7 +104,7 @@ public class AzureSnapshotRestoreTest extends AbstractAzureRepositoryServiceTest // Test restore after index deletion logger.info("--> delete indices"); - wipeIndices("test-idx-1", "test-idx-2"); + cluster().wipeIndices("test-idx-1", "test-idx-2"); logger.info("--> restore one index after deletion"); restoreSnapshotResponse = client.admin().cluster().prepareRestoreSnapshot("test-repo", "test-snap").setWaitForCompletion(true).setIndices("test-idx-*", "-test-idx-2").execute().actionGet(); assertThat(restoreSnapshotResponse.getRestoreInfo().totalShards(), greaterThan(0));