Skip to content

Commit

Permalink
Mute KerberosAuthenticationIT
Browse files Browse the repository at this point in the history
Relates #32498
  • Loading branch information
danielmitterdorfer committed Jul 31, 2018
1 parent e3b2556 commit 02e9388
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public void setupRoleMapping() throws IOException {
assertOK(response);
}

@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/32498")
public void testLoginByKeytab() throws IOException, PrivilegedActionException {
final String userPrincipalName = System.getProperty(TEST_USER_WITH_KEYTAB_KEY);
final String keytabPath = System.getProperty(TEST_USER_WITH_KEYTAB_PATH_KEY);
Expand All @@ -91,6 +92,7 @@ public void testLoginByKeytab() throws IOException, PrivilegedActionException {
executeRequestAndVerifyResponse(userPrincipalName, callbackHandler);
}

@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/32498")
public void testLoginByUsernamePassword() throws IOException, PrivilegedActionException {
final String userPrincipalName = System.getProperty(TEST_USER_WITH_PWD_KEY);
final String password = System.getProperty(TEST_USER_WITH_PWD_PASSWD_KEY);
Expand All @@ -100,6 +102,10 @@ public void testLoginByUsernamePassword() throws IOException, PrivilegedActionEx
executeRequestAndVerifyResponse(userPrincipalName, callbackHandler);
}

public void testSoDoesNotFailWithNoTests() {
// intentionally empty - this is just needed to ensure the build does not fail because we mute its only test.
}

private void executeRequestAndVerifyResponse(final String userPrincipalName,
final SpnegoHttpClientConfigCallbackHandler callbackHandler) throws PrivilegedActionException, IOException {
final Request request = new Request("GET", "/_xpack/security/_authenticate");
Expand Down

0 comments on commit 02e9388

Please sign in to comment.