use of org.apache.solr.util.SSLTestConfig in project lucene-solr by apache.
the class TestMiniSolrCloudClusterSSL method testNoSslButSillyClientAuth.
public void testNoSslButSillyClientAuth() throws Exception {
// this combination doesn't really make sense, since ssl==false the clientauth option will be ignored
// but we test it anyway for completeness of sanity checking the behavior of code that looks at those
// options.
final SSLTestConfig sslConfig = new SSLTestConfig(false, true);
HttpClientUtil.setSchemaRegistryProvider(sslConfig.buildClientSchemaRegistryProvider());
System.setProperty(ZkStateReader.URL_SCHEME, "http");
checkClusterWithNodeReplacement(sslConfig);
}
use of org.apache.solr.util.SSLTestConfig in project lucene-solr by apache.
the class TestMiniSolrCloudClusterSSL method testSslAndNoClientAuth.
public void testSslAndNoClientAuth() throws Exception {
final SSLTestConfig sslConfig = new SSLTestConfig(true, false);
HttpClientUtil.setSchemaRegistryProvider(sslConfig.buildClientSchemaRegistryProvider());
System.setProperty(ZkStateReader.URL_SCHEME, "https");
checkClusterWithNodeReplacement(sslConfig);
}
use of org.apache.solr.util.SSLTestConfig in project lucene-solr by apache.
the class SSLMigrationTest method test.
@Test
public void test() throws Exception {
//Migrate from HTTP -> HTTPS -> HTTP
assertReplicaInformation("http");
testMigrateSSL(new SSLTestConfig(true, false));
testMigrateSSL(new SSLTestConfig(false, false));
}
Aggregations