hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiao Chen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-13785) Clean up tests that conditionally handle IBM_JAVA
Date Wed, 02 Nov 2016 04:23:58 GMT
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 [~stevel@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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org


Mime
View raw message