Skip to content

Commit d615cf7

Browse files
Mute flaky kerberos tests on JDK 17 (#76227)
Relates #72120
1 parent a4983f5 commit d615cf7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public void setupRoleMapping() throws IOException {
9191

9292
public void testLoginByKeytab() throws IOException, PrivilegedActionException {
9393
assumeFalse("This test fails often on Java 17 early access. See: https://github.com/elastic/elasticsearch/issues/72120",
94-
"17-ea".equals(System.getProperty("java.version")));
94+
"17".equals(System.getProperty("java.version")));
9595
final String userPrincipalName = System.getProperty(TEST_USER_WITH_KEYTAB_KEY);
9696
final String keytabPath = System.getProperty(TEST_USER_WITH_KEYTAB_PATH_KEY);
9797
final boolean enabledDebugLogs = Boolean.parseBoolean(System.getProperty(ENABLE_KERBEROS_DEBUG_LOGS_KEY));
@@ -102,7 +102,7 @@ public void testLoginByKeytab() throws IOException, PrivilegedActionException {
102102

103103
public void testLoginByUsernamePassword() throws IOException, PrivilegedActionException {
104104
assumeFalse("This test fails often on Java 17 early access. See: https://github.com/elastic/elasticsearch/issues/72120",
105-
"17-ea".equals(System.getProperty("java.version")));
105+
"17".equals(System.getProperty("java.version")));
106106
final String userPrincipalName = System.getProperty(TEST_USER_WITH_PWD_KEY);
107107
final String password = System.getProperty(TEST_USER_WITH_PWD_PASSWD_KEY);
108108
final boolean enabledDebugLogs = Boolean.parseBoolean(System.getProperty(ENABLE_KERBEROS_DEBUG_LOGS_KEY));
@@ -113,7 +113,7 @@ public void testLoginByUsernamePassword() throws IOException, PrivilegedActionEx
113113

114114
public void testGetOauth2TokenInExchangeForKerberosTickets() throws PrivilegedActionException, GSSException, IOException {
115115
assumeFalse("This test fails often on Java 17. See: https://github.com/elastic/elasticsearch/issues/72120",
116-
"17-ea".equals(System.getProperty("java.version")));
116+
"17".equals(System.getProperty("java.version")));
117117
final String userPrincipalName = System.getProperty(TEST_USER_WITH_PWD_KEY);
118118
final String password = System.getProperty(TEST_USER_WITH_PWD_PASSWD_KEY);
119119
final boolean enabledDebugLogs = Boolean.parseBoolean(System.getProperty(ENABLE_KERBEROS_DEBUG_LOGS_KEY));

0 commit comments

Comments
 (0)