epugh commented on code in PR #1211:
URL: https://github.com/apache/solr/pull/1211#discussion_r1039879271
##########
solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java:
##########
@@ -2871,10 +2871,30 @@ public static LBHttpSolrClient
getLBHttpSolrClient(String... solrUrls)
return new LBHttpSolrClient.Builder().withBaseSolrUrls(solrUrls).build();
}
+ /** This method creates a HttpClient from a URL. */
+ public static HttpClient getHttpClient(String url) {
+ return new HttpSolrClient.Builder(url).build().getHttpClient();
+ }
+
/**
- * This method <i>may</i> randomize unspecified aspects of the resulting
SolrClient. Tests that do
- * not wish to have any randomized behavior should use the {@link
- * org.apache.solr.client.solrj.impl.HttpSolrClient.Builder} class directly
+ * This method creates a basic HttpSolrClient. Tests that want to control
the creation process
+ * should use the {@link
org.apache.solr.client.solrj.impl.HttpSolrClient.Builder} class directly
+ */
Review Comment:
i actually did just that, and then took all of those changes out based on
review feedback. Part of why I want to get this merged is cause I can't
remember all the twists and turns we've made, and so I'ld love to get this in,
and then in the next one revisit moving to Http2SolrClient etc...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]