enable rest of await-fix index-lifecycle integ tests. all green

This commit is contained in:
Tal Levy 2017-12-13 13:40:58 -08:00
parent c0c7e02de4
commit 8d6e53356b
1 changed files with 9 additions and 2 deletions

View File

@ -112,7 +112,6 @@ public class IndexLifecycleInitialisationIT extends ESIntegTestCase {
}); });
} }
@AwaitsFix(bugUrl = "THIS NEEDS FIXING") // NOCOMMIT Fix this integration test
public void testMasterDedicatedDataDedicated() throws Exception { public void testMasterDedicatedDataDedicated() throws Exception {
// start master node // start master node
logger.info("Starting sever1"); logger.info("Starting sever1");
@ -123,6 +122,10 @@ public class IndexLifecycleInitialisationIT extends ESIntegTestCase {
final String server_2 = internalCluster().startDataOnlyNode(); final String server_2 = internalCluster().startDataOnlyNode();
final String node2 = getLocalNodeId(server_2); final String node2 = getLocalNodeId(server_2);
logger.info("Creating lifecycle [test_lifecycle]");
PutLifecycleAction.Request putLifecycleRequest = new PutLifecycleAction.Request(lifecyclePolicy);
PutLifecycleAction.Response putLifecycleResponse = client().execute(PutLifecycleAction.INSTANCE, putLifecycleRequest).get();
assertAcked(putLifecycleResponse);
logger.info("Creating index [test]"); logger.info("Creating index [test]");
CreateIndexResponse createIndexResponse = client().admin().indices().create(createIndexRequest("test").settings(settings)) CreateIndexResponse createIndexResponse = client().admin().indices().create(createIndexRequest("test").settings(settings))
.actionGet(); .actionGet();
@ -137,13 +140,17 @@ public class IndexLifecycleInitialisationIT extends ESIntegTestCase {
}); });
} }
@AwaitsFix(bugUrl = "THIS NEEDS FIXING") // NOCOMMIT Fix this integration test
public void testMasterFailover() throws Exception { public void testMasterFailover() throws Exception {
// start one server // start one server
logger.info("Starting sever1"); logger.info("Starting sever1");
final String server_1 = internalCluster().startNode(); final String server_1 = internalCluster().startNode();
final String node1 = getLocalNodeId(server_1); final String node1 = getLocalNodeId(server_1);
logger.info("Creating lifecycle [test_lifecycle]");
PutLifecycleAction.Request putLifecycleRequest = new PutLifecycleAction.Request(lifecyclePolicy);
PutLifecycleAction.Response putLifecycleResponse = client().execute(PutLifecycleAction.INSTANCE, putLifecycleRequest).get();
assertAcked(putLifecycleResponse);
logger.info("Creating index [test]"); logger.info("Creating index [test]");
CreateIndexResponse createIndexResponse = client().admin().indices().create(createIndexRequest("test").settings(settings)) CreateIndexResponse createIndexResponse = client().admin().indices().create(createIndexRequest("test").settings(settings))
.actionGet(); .actionGet();