Skip to content

Commit

Permalink
[TEST] Add "ne" as an unsupported SimpleKdc locale (#32700)
Browse files Browse the repository at this point in the history
SimpleKdcServer cannot handle some locales, so we explicitly avoid
using them in tests.
Adding "ne" (Nepali) to that list.
  • Loading branch information
tvernum committed Aug 20, 2018
1 parent cd642ba commit 1ba57cc
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public abstract class KerberosTestCase extends ESTestCase {
unsupportedLocaleLanguages.add("uz");
unsupportedLocaleLanguages.add("fa");
unsupportedLocaleLanguages.add("ks");
unsupportedLocaleLanguages.add("ne");
}

@BeforeClass
Expand Down Expand Up @@ -143,7 +144,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
Expand Down Expand Up @@ -177,7 +178,7 @@ static <T> 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
Expand All @@ -192,7 +193,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
*/
Expand All @@ -202,7 +203,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
Expand Down

0 comments on commit 1ba57cc

Please sign in to comment.