[TEST] temporarily log the default locale in REST tests

The locale is being randomized but never printed out for now (fixed upstream but we still depend on 1.4.0). We need to temporarily log it out manually to debug some test failures that might be related to the locale randomization (in combination with build machines settings).

Original commit: elastic/x-pack-elasticsearch@6f7e9625d1
This commit is contained in:
javanna 2014-12-02 19:23:52 +01:00 committed by Luca Cavanna
parent eac85eda10
commit 847fc21def
1 changed files with 2 additions and 5 deletions

View File

@ -11,11 +11,6 @@ import org.apache.lucene.util.AbstractRandomizedTest;
import org.elasticsearch.client.support.Headers;
import org.elasticsearch.common.settings.ImmutableSettings;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.plugins.PluginsService;
import org.elasticsearch.shield.authc.support.SecuredStringTests;
import org.elasticsearch.shield.signature.InternalSignatureService;
import org.elasticsearch.shield.ShieldPlugin;
import org.elasticsearch.shield.transport.netty.NettySecuredTransport;
import org.elasticsearch.shield.authc.support.SecuredString;
import org.elasticsearch.shield.authc.support.UsernamePasswordToken;
import org.elasticsearch.test.rest.ElasticsearchRestTests;
@ -28,6 +23,7 @@ import org.junit.BeforeClass;
import org.junit.Test;
import java.io.IOException;
import java.util.Locale;
import static org.elasticsearch.shield.authc.support.UsernamePasswordToken.basicAuthHeaderValue;
@ -71,6 +67,7 @@ public class ShieldRestTests extends ShieldIntegrationTest {
@Test
public void test() throws IOException {
logger.info("current default locale is [{}]", Locale.getDefault());
delegate.test();
}