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 authored Aug 10, 2018
1 parent 0161bbc commit 93d4f84
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public abstract class KerberosTestCase extends ESTestCase {
unsupportedLocaleLanguages.add("fa");
unsupportedLocaleLanguages.add("ks");
unsupportedLocaleLanguages.add("ckb");
unsupportedLocaleLanguages.add("ne");
}

@BeforeClass
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -178,7 +179,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 @@ -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
*/
Expand All @@ -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
Expand Down

0 comments on commit 93d4f84

Please sign in to comment.