Apache Lucene open-source search software
SOLR-7008: Exclude server/etc/solrtest.keystore and create-solrtest.keystore.sh from the binary release packages
Steven Roweab8d012df642
diff --git a/solr/build.xml b/solr/build.xmlindex 8d6d15f33d2..f8cbce89fbc 100644--- a/solr/build.xml+++ b/solr/build.xml@@ -478,14 +478,15 @@excludes="licenses/README.committers.txt **/data/ **/logs/***/classes/ **/*.sh **/ivy.xml **/build.xml**/bin/ **/*.iml **/*.ipr **/*.iws **/pom.xml- **/*pom.xml.template" />+ **/*pom.xml.template server/etc/test/" /><tarfileset dir="${dest}/contrib-lucene-libs-to-package"prefix="${fullnamever}"includes="**" /><tarfileset dir="."filemode="755"prefix="${fullnamever}"- includes="bin/** server/**/*.sh example/**/*.sh example/**/bin/" />+ includes="bin/** server/**/*.sh example/**/*.sh example/**/bin/"+ excludes="server/etc/test/**" /><tarfileset dir="."prefix="${fullnamever}"includes="dist/*.jardiff --git a/solr/server/etc/jetty.xml b/solr/server/etc/jetty.xmlindex f5976ed6537..8da30a05a77 100644--- a/solr/server/etc/jetty.xml+++ b/solr/server/etc/jetty.xml@@ -12,43 +12,6 @@<Configure id="Server" class="org.eclipse.jetty.server.Server">- <!-- if the connector below is uncommented, then jetty will also accept SSL- connections on port 8984, using a self signed certificate and can- optionally require the client to authenticate with a certificate.- (which can be the same as the server certificate_-- # Run solr example with SSL on port 8984- java -jar start.jar- #- # Run post.jar so that it trusts the server cert...- java -Djavax.net.ssl.trustStore=../etc/solrtest.keystore -Durl=https://localhost:8984/solr/update -jar post.jar *.xml-- # Run solr example with SSL requiring client certs on port 8984- java -Djetty.ssl.clientAuth=true -jar start.jar- #- # Run post.jar so that it trusts the server cert,- # and authenticates with a client cert- java -Djavax.net.ssl.keyStorePassword=secret -Djavax.net.ssl.keyStore=../etc/solrtest.keystore -Djavax.net.ssl.trustStore=../etc/solrtest.keystore -Durl=https://localhost:8984/solr/update -jar post.jar *.xml-- -->- <!--- <Call name="addConnector">- <Arg>- <New class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">- <Arg>- <New class="org.eclipse.jetty.http.ssl.SslContextFactory">- <Set name="keyStore"><SystemProperty name="jetty.home" default="."/>/etc/solrtest.keystore</Set>- <Set name="keyStorePassword">secret</Set>- <Set name="needClientAuth"><SystemProperty name="jetty.ssl.clientAuth" default="false"/></Set>- </New>- </Arg>- <Set name="port"><SystemProperty name="jetty.ssl.port" default="8984"/></Set>- <Set name="maxIdleTime">30000</Set>- </New>- </Arg>- </Call>- -->-<!-- =========================================================== --><!-- Set handler Collection Structure --><!-- =========================================================== -->diff --git a/solr/server/etc/create-solrtest.keystore.sh b/solr/server/etc/test/create-solrtest.keystore.shsimilarity index 97%rename from solr/server/etc/create-solrtest.keystore.shrename to solr/server/etc/test/create-solrtest.keystore.shindex d3decee7b54..36c5f0d3927 100755--- a/solr/server/etc/create-solrtest.keystore.sh+++ b/solr/server/etc/test/create-solrtest.keystore.sh@@ -18,7 +18,7 @@############# This script shows how the solrtest.keystore file used for solr tests-# and these example configs was generated.+# was generated.## Running this script should only be necessary if the keystore file# needs to be replaced, which shouldn't be required until sometime arounddiff --git a/solr/server/etc/solrtest.keystore b/solr/server/etc/test/solrtest.keystoresimilarity index 100%rename from solr/server/etc/solrtest.keystorerename to solr/server/etc/test/solrtest.keystorediff --git a/solr/test-framework/src/java/org/apache/solr/util/SSLTestConfig.java b/solr/test-framework/src/java/org/apache/solr/util/SSLTestConfig.javaindex 45720c6ecbe..b3e575fc6a7 100644--- a/solr/test-framework/src/java/org/apache/solr/util/SSLTestConfig.java+++ b/solr/test-framework/src/java/org/apache/solr/util/SSLTestConfig.java@@ -39,7 +39,7 @@ import org.eclipse.jetty.util.security.CertificateUtils;public class SSLTestConfig extends SSLConfig {public static File TEST_KEYSTORE = ExternalPaths.SERVER_HOME == null ? null- : new File(ExternalPaths.SERVER_HOME, "../etc/solrtest.keystore");+ : new File(ExternalPaths.SERVER_HOME, "../etc/test/solrtest.keystore");private static String TEST_KEYSTORE_PATH = TEST_KEYSTORE != null&& TEST_KEYSTORE.exists() ? TEST_KEYSTORE.getAbsolutePath() : null;