[TEST] Changed test log levels

Original commit: elastic/x-pack-elasticsearch@73bd1251fa
This commit is contained in:
Martijn van Groningen 2017-04-10 19:48:45 +02:00
parent 1e1b5405b3
commit 9201a5d640
2 changed files with 4 additions and 5 deletions

View File

@ -43,7 +43,6 @@ import java.util.concurrent.TimeUnit;
import static org.elasticsearch.xpack.ml.job.process.autodetect.AutodetectProcessManager.MAX_RUNNING_JOBS_PER_NODE; import static org.elasticsearch.xpack.ml.job.process.autodetect.AutodetectProcessManager.MAX_RUNNING_JOBS_PER_NODE;
@TestLogging("org.elasticsearch.xpack.ml.action::DEBUG")
public class BasicDistributedJobsIT extends BaseMlIntegTestCase { public class BasicDistributedJobsIT extends BaseMlIntegTestCase {
public void testFailOverBasics() throws Exception { public void testFailOverBasics() throws Exception {
@ -145,7 +144,7 @@ public class BasicDistributedJobsIT extends BaseMlIntegTestCase {
}); });
} }
@TestLogging("org.elasticsearch.xpack.persistent:TRACE,org.elasticsearch.cluster.service:DEBUG") @TestLogging("org.elasticsearch.xpack.persistent:TRACE,org.elasticsearch.cluster.service:DEBUG,org.elasticsearch.xpack.ml.action::DEBUG")
public void testDedicatedMlNode() throws Exception { public void testDedicatedMlNode() throws Exception {
internalCluster().ensureAtMostNumDataNodes(0); internalCluster().ensureAtMostNumDataNodes(0);
// start 2 non ml node that will never get a job allocated. (but ml apis are accessable from this node) // start 2 non ml node that will never get a job allocated. (but ml apis are accessable from this node)
@ -309,6 +308,7 @@ public class BasicDistributedJobsIT extends BaseMlIntegTestCase {
assertEquals("Expected no violations, but got [" + violations + "]", 0, violations.size()); assertEquals("Expected no violations, but got [" + violations + "]", 0, violations.size());
} }
@TestLogging("org.elasticsearch.xpack.ml.action::DEBUG,org.elasticsearch.xpack.persistent:TRACE")
public void testMlIndicesNotAvailable() throws Exception { public void testMlIndicesNotAvailable() throws Exception {
internalCluster().ensureAtMostNumDataNodes(0); internalCluster().ensureAtMostNumDataNodes(0);
// start non ml node, but that will hold the indices // start non ml node, but that will hold the indices

View File

@ -38,8 +38,6 @@ import java.io.IOException;
import java.util.Collections; import java.util.Collections;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
@TestLogging("org.elasticsearch.xpack.ml.datafeed:DEBUG,org.elasticsearch.xpack.ml.action:DEBUG," +
"org.elasticsearch.xpack.ml.job.persistence:DEBUG")
public class MlDistributedFailureIT extends BaseMlIntegTestCase { public class MlDistributedFailureIT extends BaseMlIntegTestCase {
public void testFailOver() throws Exception { public void testFailOver() throws Exception {
@ -54,7 +52,8 @@ public class MlDistributedFailureIT extends BaseMlIntegTestCase {
}); });
} }
@TestLogging("org.elasticsearch.xpack.persistent:TRACE,org.elasticsearch.cluster.service:TRACE") @TestLogging("org.elasticsearch.xpack.ml.action:DEBUG,org.elasticsearch.xpack.persistent:TRACE," +
"org.elasticsearch.cluster.service:TRACE")
public void testLoseDedicatedMasterNode() throws Exception { public void testLoseDedicatedMasterNode() throws Exception {
internalCluster().ensureAtMostNumDataNodes(0); internalCluster().ensureAtMostNumDataNodes(0);
logger.info("Starting dedicated master node..."); logger.info("Starting dedicated master node...");