[TEST] All shards should be allocated before snapshotting.
This commit is contained in:
parent
dbd5cbee7f
commit
5631bbb02b
|
@ -325,6 +325,8 @@ public class IndicesOptionsIntegrationTests extends ElasticsearchIntegrationTest
|
|||
@Test
|
||||
public void testWildcardBehaviour_snapshotRestore() throws Exception {
|
||||
createIndex("foobar");
|
||||
ensureGreen("foobar");
|
||||
waitForRelocation();
|
||||
|
||||
PutRepositoryResponse putRepositoryResponse = client().admin().cluster().preparePutRepository("dummy-repo")
|
||||
.setType("fs").setSettings(ImmutableSettings.settingsBuilder().put("location", newTempDir())).get();
|
||||
|
@ -341,7 +343,7 @@ public class IndicesOptionsIntegrationTests extends ElasticsearchIntegrationTest
|
|||
|
||||
assertAcked(prepareCreate("barbaz"));
|
||||
//TODO: temporary work-around for #5531
|
||||
ensureGreen();
|
||||
ensureGreen("barbaz");
|
||||
waitForRelocation();
|
||||
options = IndicesOptions.fromOptions(false, false, true, false);
|
||||
verify(snapshot("snap3", "foo*", "bar*").setIndicesOptions(options), false);
|
||||
|
|
Loading…
Reference in New Issue