From 5b61dac1a5af787c16293564fd7bce7c94d5afd7 Mon Sep 17 00:00:00 2001 From: Tim Vernum Date: Wed, 8 Aug 2018 14:36:11 +1000 Subject: [PATCH] [TEST] Add "ne" as an unsupported SimpleKdc locale SimpleKdcServer cannot handle some locales, so we explicitly avoid using them in tests. Adding "ne" (Nepali) to that list. --- .../xpack/security/authc/kerberos/KerberosTestCase.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/kerberos/KerberosTestCase.java b/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/kerberos/KerberosTestCase.java index 39d62c7bcea98..0f88148a9a973 100644 --- a/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/kerberos/KerberosTestCase.java +++ b/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/kerberos/KerberosTestCase.java @@ -71,6 +71,7 @@ public abstract class KerberosTestCase extends ESTestCase { unsupportedLocaleLanguages.add("fa"); unsupportedLocaleLanguages.add("ks"); unsupportedLocaleLanguages.add("ckb"); + unsupportedLocaleLanguages.add("ne"); } @BeforeClass @@ -144,7 +145,7 @@ protected Path createPrincipalKeyTab(final Path dir, final String... princNames) /** * Creates principal with given name and password. - * + * * @param principalName Principal name * @param password Password * @throws Exception thrown if principal could not be created @@ -178,7 +179,7 @@ static T doAsWrapper(final Subject subject, final PrivilegedExceptionAction< /** * Write content to provided keytab file. - * + * * @param keytabPath {@link Path} to keytab file. * @param content Content for keytab * @return key tab path @@ -193,7 +194,7 @@ public static Path writeKeyTab(final Path keytabPath, final String content) thro /** * Build kerberos realm settings with default config and given keytab - * + * * @param keytabPath key tab file path * @return {@link Settings} for kerberos realm */ @@ -203,7 +204,7 @@ public static Settings buildKerberosRealmSettings(final String keytabPath) { /** * Build kerberos realm settings - * + * * @param keytabPath key tab file path * @param maxUsersInCache max users to be maintained in cache * @param cacheTTL time to live for cached entries