You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by yo...@apache.org on 2016/11/17 21:39:46 UTC
[2/5] lucene-solr:branch_6x: SOLR-9460: Disable test that does not
work with Windows
SOLR-9460: Disable test that does not work with Windows
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/225198a2
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/225198a2
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/225198a2
Branch: refs/heads/branch_6x
Commit: 225198a2b754783d485b2cee7d1aa4741f65e5a3
Parents: 8659fe1
Author: Uwe Schindler <us...@apache.org>
Authored: Sat Sep 3 10:48:01 2016 +0200
Committer: yonik <yo...@apache.org>
Committed: Thu Nov 17 15:05:46 2016 -0500
----------------------------------------------------------------------
.../apache/solr/cloud/TestSolrCloudWithSecureImpersonation.java | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/225198a2/solr/core/src/test/org/apache/solr/cloud/TestSolrCloudWithSecureImpersonation.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/cloud/TestSolrCloudWithSecureImpersonation.java b/solr/core/src/test/org/apache/solr/cloud/TestSolrCloudWithSecureImpersonation.java
index 71107ee..3727620 100644
--- a/solr/core/src/test/org/apache/solr/cloud/TestSolrCloudWithSecureImpersonation.java
+++ b/solr/core/src/test/org/apache/solr/cloud/TestSolrCloudWithSecureImpersonation.java
@@ -25,6 +25,7 @@ import java.util.TreeMap;
import java.util.concurrent.atomic.AtomicBoolean;
import org.apache.hadoop.conf.Configuration;
+import org.apache.lucene.util.Constants;
import org.apache.solr.SolrTestCaseJ4;
import org.apache.solr.client.solrj.SolrClient;
import org.apache.solr.client.solrj.SolrRequest;
@@ -92,6 +93,8 @@ public class TestSolrCloudWithSecureImpersonation extends SolrTestCaseJ4 {
@BeforeClass
public static void startup() throws Exception {
+ assumeFalse("Hadoop does not work on Windows", Constants.WINDOWS);
+
System.setProperty("authenticationPlugin", HttpParamDelegationTokenPlugin.class.getName());
System.setProperty(KerberosPlugin.DELEGATION_TOKEN_ENABLED, "true");