"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "solr/solrj/src/test/org/apache/solr/client/solrj/impl/Http2SolrClientTest.java" between
solr-8.4.0-src.tgz and solr-8.4.1-src.tgz

About: Solr is the search platform from the Apache Lucene project. Its major features include full-text search, hit highlighting, faceted search, caching, replication, and a web admin interface.

Http2SolrClientTest.java  (solr-8.4.0-src.tgz):Http2SolrClientTest.java  (solr-8.4.1-src.tgz)
skipping to change at line 48 skipping to change at line 48
import org.apache.solr.client.solrj.SolrRequest; import org.apache.solr.client.solrj.SolrRequest;
import org.apache.solr.client.solrj.SolrServerException; import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.embedded.JettyConfig; import org.apache.solr.client.solrj.embedded.JettyConfig;
import org.apache.solr.client.solrj.request.RequestWriter; import org.apache.solr.client.solrj.request.RequestWriter;
import org.apache.solr.client.solrj.request.UpdateRequest; import org.apache.solr.client.solrj.request.UpdateRequest;
import org.apache.solr.common.SolrException; import org.apache.solr.common.SolrException;
import org.apache.solr.common.SolrInputDocument; import org.apache.solr.common.SolrInputDocument;
import org.apache.solr.common.params.CommonParams; import org.apache.solr.common.params.CommonParams;
import org.apache.solr.common.util.SuppressForbidden; import org.apache.solr.common.util.SuppressForbidden;
import org.eclipse.jetty.servlet.ServletHolder; import org.eclipse.jetty.servlet.ServletHolder;
import org.eclipse.jetty.util.ssl.SslContextFactory;
import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.Test; import org.junit.Test;
public class Http2SolrClientTest extends SolrJettyTestBase { public class Http2SolrClientTest extends SolrJettyTestBase {
private static final String EXPECTED_USER_AGENT = "Solr[" + Http2SolrClient.cl ass.getName() + "] 2.0"; private static final String EXPECTED_USER_AGENT = "Solr[" + Http2SolrClient.cl ass.getName() + "] 2.0";
public static class DebugServlet extends HttpServlet { public static class DebugServlet extends HttpServlet {
public static void clear() { public static void clear() {
lastMethod = null; lastMethod = null;
skipping to change at line 590 skipping to change at line 591
client.request(req); client.request(req);
} catch (ParseException ignored) {} } catch (ParseException ignored) {}
// NOTE: single stream requests send all the params // NOTE: single stream requests send all the params
// as part of the query string. So add "neither" to the request // as part of the query string. So add "neither" to the request
// so it passes the verification step. // so it passes the verification step.
req.setQueryParams(setOf("requestOnly", "both", "neither")); req.setQueryParams(setOf("requestOnly", "both", "neither"));
verifyServletState(client, req); verifyServletState(client, req);
} }
} }
@Test
public void testGetDefaultSslContextFactory() {
assertNull(Http2SolrClient.getDefaultSslContextFactory().getEndpointIdentifi
cationAlgorithm());
System.setProperty("solr.jetty.ssl.verifyClientHostName", "HTTPS");
SslContextFactory.Client sslContextFactory = Http2SolrClient.getDefaultSslCo
ntextFactory();
assertEquals("HTTPS", sslContextFactory.getEndpointIdentificationAlgorithm()
);
System.clearProperty("solr.jetty.ssl.verifyClientHostName");
}
/** /**
* Missed tests : * Missed tests :
* - set cookies via interceptor * - set cookies via interceptor
* - invariant params * - invariant params
* - compression * - compression
* - get raw stream * - get raw stream
*/ */
} }
 End of changes. 2 change blocks. 
0 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)