Xiao Chen created HADOOP-13785: ---------------------------------- Summary: Clean up tests that conditionally handle IBM_JAVA Key: HADOOP-13785 URL: https://issues.apache.org/jira/browse/HADOOP-13785 Project: Hadoop Common Issue Type: Improvement Components: test Affects Versions: 2.8.0 Reporter: Xiao Chen Priority: Minor
Initially from a [review comment|https://issues.apache.org/jira/browse/HADOOP-13590?focusedCommentId=15625141&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15625141] by [~ste...@apache.org]. In some tests we see code like below: {code} if (PlatformName.IBM_JAVA) { options.put("useKeytab", keytab.getPath()); options.put("credsType", "both"); } else { options.put("keyTab", keytab.getPath()); options.put("useKeyTab", "true"); options.put("storeKey", "true"); options.put("doNotPrompt", "true"); options.put("useTicketCache", "true"); options.put("renewTGT", "true"); options.put("isInitiator", Boolean.toString(true)); } {code} We should extract a util function to some degree, and clean them up. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-dev-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-dev-h...@hadoop.apache.org