Skip to content

Commit

Permalink
Merge pull request #16668 from jvanhill/rtc282932-2
Browse files Browse the repository at this point in the history
Fix #2 for test failure in RTC 282932. Unconditionally reset the serv…
  • Loading branch information
Jesse Van Hill authored Apr 20, 2021
2 parents 452f6c5 + 11ec0ac commit 94e5f16
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,14 +313,15 @@ public static void commonSetUp(String testServerName, String serverXml, List<Str
Log.info(c, thisMethod, "Using initial config: " + config);
}

if (getKdcHelper() == null) {
setKdcHelper(getKdcHelper(getMyServer()));
} else {
createKrbConf(getKdcHelper().server);
}

if (createSpnAndKeytab) {
try {
Log.info(c, thisMethod, "Creating SPN and keytab");
if (getKdcHelper() == null) {
setKdcHelper(getKdcHelper(getMyServer()));
} else {
createKrbConf(getKdcHelper().server);
}
getKdcHelper().createSpnAndKeytab(spnRealm, useCanonicalHostName, SPNEGOConstants.DEFAULT_CMD_ARGS);
} catch (Exception e) {
Log.info(c, thisMethod, "Got unexpected exception; no tests will be run: " + CommonTest.maskHostnameAndPassword(e.getMessage()));
Expand Down

0 comments on commit 94e5f16

Please sign in to comment.