[TESTS] Log what the _default_ template is in ElasticsearchIntegrationTest

This commit is contained in:
Lee Hinman 2014-12-05 14:43:29 +01:00
parent caa5af4bf6
commit d32f1a8ad0
1 changed files with 1 additions and 0 deletions

View File

@ -411,6 +411,7 @@ public abstract class ElasticsearchIntegrationTest extends ElasticsearchTestCase
.setOrder(0) .setOrder(0)
.setSettings(randomSettingsBuilder); .setSettings(randomSettingsBuilder);
if (mappings != null) { if (mappings != null) {
logger.info("test using _default_ mappings: [{}]", mappings.bytesStream().bytes().toUtf8());
putTemplate.addMapping("_default_", mappings); putTemplate.addMapping("_default_", mappings);
} }
assertAcked(putTemplate.execute().actionGet()); assertAcked(putTemplate.execute().actionGet());