Skip to content

Commit dcb756e

Browse files
committed
Unmute Kerberos integ tests (elastic#80538)
We used to default enctypes to des3-cbc-sha1-kd but with JDK17, weak encryption types are disabled by default. This caused our Kerberos integration tests to fail with an `sun.security.krb5.KrbException: no supported default etypes for default_tkt_enctypes` exception. We have since changed our default encryption type to aes256-cts-hmac-sha1-96 in elastic#78703 and we can unmute these tests now.
1 parent b4df263 commit dcb756e

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

x-pack/qa/kerberos-tests/src/test/java/org/elasticsearch/xpack/security/authc/kerberos/KerberosAuthenticationIT.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ public void setupRoleMapping() throws IOException {
9797
}
9898

9999
public void testLoginByKeytab() throws IOException, PrivilegedActionException {
100-
assumeFalse(
101-
"This test fails often on Java 17 early access. See: https://github.com/elastic/elasticsearch/issues/72120",
102-
"17".equals(System.getProperty("java.version"))
103-
);
104100
final String userPrincipalName = System.getProperty(TEST_USER_WITH_KEYTAB_KEY);
105101
final String keytabPath = System.getProperty(TEST_USER_WITH_KEYTAB_PATH_KEY);
106102
final boolean enabledDebugLogs = Boolean.parseBoolean(System.getProperty(ENABLE_KERBEROS_DEBUG_LOGS_KEY));
@@ -113,10 +109,6 @@ public void testLoginByKeytab() throws IOException, PrivilegedActionException {
113109
}
114110

115111
public void testLoginByUsernamePassword() throws IOException, PrivilegedActionException {
116-
assumeFalse(
117-
"This test fails often on Java 17 early access. See: https://github.com/elastic/elasticsearch/issues/72120",
118-
"17".equals(System.getProperty("java.version"))
119-
);
120112
final String userPrincipalName = System.getProperty(TEST_USER_WITH_PWD_KEY);
121113
final String password = System.getProperty(TEST_USER_WITH_PWD_PASSWD_KEY);
122114
final boolean enabledDebugLogs = Boolean.parseBoolean(System.getProperty(ENABLE_KERBEROS_DEBUG_LOGS_KEY));
@@ -129,10 +121,6 @@ public void testLoginByUsernamePassword() throws IOException, PrivilegedActionEx
129121
}
130122

131123
public void testGetOauth2TokenInExchangeForKerberosTickets() throws PrivilegedActionException, GSSException, IOException {
132-
assumeFalse(
133-
"This test fails often on Java 17. See: https://github.com/elastic/elasticsearch/issues/72120",
134-
"17".equals(System.getProperty("java.version"))
135-
);
136124
final String userPrincipalName = System.getProperty(TEST_USER_WITH_PWD_KEY);
137125
final String password = System.getProperty(TEST_USER_WITH_PWD_PASSWD_KEY);
138126
final boolean enabledDebugLogs = Boolean.parseBoolean(System.getProperty(ENABLE_KERBEROS_DEBUG_LOGS_KEY));

0 commit comments

Comments
 (0)