Skip to content

Commit 0299031

Browse files
authored
Mute kerberos tests for jdk 8u262 (#60353)
The JDK bug (https://bugs.openjdk.java.net/browse/JDK-8246193) is fixed since b26. The tests can be unmuted since we are already using b33. However the same bug is now affecting jdk 8u262, which is the base for current Zulu jdk 8.48. This PR mute the tests for this specific jdk version. Relates: #56507
1 parent 76bf8d2 commit 0299031

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,13 @@ public void setupRoleMapping() throws IOException {
8484
assertOK(response);
8585
}
8686

87+
// JDK 8u262 shipped with a NPE in Kerberos code, see https://github.com/elastic/elasticsearch/issues/56507
88+
public void testSuppressedOnJDK8u262() {
89+
assumeFalse("Cannot run on JDK 8u262", "1.8.0_262".equals(System.getProperty("java.version")));
90+
}
91+
8792
public void testLoginByKeytab() throws IOException, PrivilegedActionException {
93+
testSuppressedOnJDK8u262();
8894
final String userPrincipalName = System.getProperty(TEST_USER_WITH_KEYTAB_KEY);
8995
final String keytabPath = System.getProperty(TEST_USER_WITH_KEYTAB_PATH_KEY);
9096
final boolean enabledDebugLogs = Boolean.parseBoolean(System.getProperty(ENABLE_KERBEROS_DEBUG_LOGS_KEY));
@@ -94,6 +100,7 @@ public void testLoginByKeytab() throws IOException, PrivilegedActionException {
94100
}
95101

96102
public void testLoginByUsernamePassword() throws IOException, PrivilegedActionException {
103+
testSuppressedOnJDK8u262();
97104
final String userPrincipalName = System.getProperty(TEST_USER_WITH_PWD_KEY);
98105
final String password = System.getProperty(TEST_USER_WITH_PWD_PASSWD_KEY);
99106
final boolean enabledDebugLogs = Boolean.parseBoolean(System.getProperty(ENABLE_KERBEROS_DEBUG_LOGS_KEY));

0 commit comments

Comments
 (0)