[
https://issues.apache.org/jira/browse/ZOOKEEPER-3043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16481842#comment-16481842
]
Enrico Olivelli edited comment on ZOOKEEPER-3043 at 5/20/18 1:55 PM:
---------------------------------------------------------------------
What about using junit TemporaryFolder rule?
I will fix the test following your suggestion in order to fix immediately the
error and keep the patch as small as possible
was (Author: eolivelli):
What about using junit TemporaryFolder rule?
I will fix the test following your suggestion in order to fix immediately the
error and the patch small
> QuorumKerberosHostBasedAuthTest fails on Linux box: Unable to
> parse:includedir /etc/krb5.conf.d/
> ------------------------------------------------------------------------------------------------
>
> Key: ZOOKEEPER-3043
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3043
> Project: ZooKeeper
> Issue Type: Improvement
> Components: build, kerberos, tests
> Affects Versions: 3.5.4, 3.6.0, 3.4.12
> Reporter: Enrico Olivelli
> Assignee: Enrico Olivelli
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.6.0, 3.4.13, 3.5.5
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> I am testing 3.5.4-BETA rc0 and I get this error while running tests
> ant -Dtestcase=QuorumKerberosHostBasedAuthTest test-core-java
>
> {code}
> Testsuite:
> org.apache.zookeeper.server.quorum.auth.QuorumKerberosHostBasedAuthTest
> Tests run: 0, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1,029 sec
> ------------- Standard Output ---------------
> 2018-05-14 13:29:36,829 [myid:] - INFO [main:JUnit4ZKTestRunner@47] - No
> test.method specified. using default methods.
> 2018-05-14 13:29:36,834 [myid:] - INFO [main:JUnit4ZKTestRunner@47] - No
> test.method specified. using default methods.
> 2018-05-14 13:29:36,839 [myid:] - INFO [main:MiniKdc@230] - Configuration:
> 2018-05-14 13:29:36,839 [myid:] - INFO [main:MiniKdc@231] -
> ---------------------------------------------------------------
> 2018-05-14 13:29:36,841 [myid:] - INFO [main:MiniKdc@233] - debug: false
> 2018-05-14 13:29:36,841 [myid:] - INFO [main:MiniKdc@233] - transport: TCP
> 2018-05-14 13:29:36,841 [myid:] - INFO [main:MiniKdc@233] -
> max.ticket.lifetime: 86400000
> 2018-05-14 13:29:36,841 [myid:] - INFO [main:MiniKdc@233] - org.name:
> EXAMPLE
> 2018-05-14 13:29:36,841 [myid:] - INFO [main:MiniKdc@233] - kdc.port: 0
> 2018-05-14 13:29:36,841 [myid:] - INFO [main:MiniKdc@233] - org.domain: COM
> 2018-05-14 13:29:36,841 [myid:] - INFO [main:MiniKdc@233] -
> max.renewable.lifetime: 604800000
> 2018-05-14 13:29:36,841 [myid:] - INFO [main:MiniKdc@233] - instance:
> DefaultKrbServer
> 2018-05-14 13:29:36,842 [myid:] - INFO [main:MiniKdc@233] -
> kdc.bind.address: localhost
> 2018-05-14 13:29:36,842 [myid:] - INFO [main:MiniKdc@235] -
> ---------------------------------------------------------------
> 2018-05-14 13:29:37,855 [myid:] - INFO [main:MiniKdc@356] - MiniKdc stopped.
> ------------- ---------------- ---------------
> Testcase:
> org.apache.zookeeper.server.quorum.auth.QuorumKerberosHostBasedAuthTest took
> 0 sec
> Caused an ERROR
> Unable to parse:includedir /etc/krb5.conf.d/
> java.lang.RuntimeException: Unable to parse:includedir /etc/krb5.conf.d/
> at
> org.apache.kerby.kerberos.kerb.common.Krb5Parser.load(Krb5Parser.java:72)
> at
> org.apache.kerby.kerberos.kerb.common.Krb5Conf.addKrb5Config(Krb5Conf.java:47)
> at
> org.apache.kerby.kerberos.kerb.client.ClientUtil.getDefaultConfig(ClientUtil.java:94)
> at
> org.apache.kerby.kerberos.kerb.client.KrbClientBase.<init>(KrbClientBase.java:51)
> at
> org.apache.kerby.kerberos.kerb.client.KrbClient.<init>(KrbClient.java:38)
> at
> org.apache.kerby.kerberos.kerb.server.SimpleKdcServer.<init>(SimpleKdcServer.java:54)
> at
> org.apache.zookeeper.server.quorum.auth.MiniKdc.start(MiniKdc.java:285)
> at
> org.apache.zookeeper.server.quorum.auth.KerberosSecurityTestcase.startMiniKdc(KerberosSecurityTestcase.java:70)
> at
> org.apache.zookeeper.server.quorum.auth.KerberosSecurityTestcase.setUpSasl(KerberosSecurityTestcase.java:56)
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)