Search in sources :

Example 6 with SSLTestConfig

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);
}
Also used : SSLTestConfig(org.apache.solr.util.SSLTestConfig)

Example 7 with SSLTestConfig

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);
}
Also used : SSLTestConfig(org.apache.solr.util.SSLTestConfig)

Example 8 with SSLTestConfig

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));
}
Also used : SSLTestConfig(org.apache.solr.util.SSLTestConfig) Test(org.junit.Test)

Aggregations

SSLTestConfig (org.apache.solr.util.SSLTestConfig)8 SSLRandomizer (org.apache.solr.util.RandomizeSSL.SSLRandomizer)2 ConnectionSocketFactory (org.apache.http.conn.socket.ConnectionSocketFactory)1 PlainConnectionSocketFactory (org.apache.http.conn.socket.PlainConnectionSocketFactory)1 SSLConnectionSocketFactory (org.apache.http.conn.ssl.SSLConnectionSocketFactory)1 HttpClientBuilder (org.apache.http.impl.client.HttpClientBuilder)1 PoolingHttpClientConnectionManager (org.apache.http.impl.conn.PoolingHttpClientConnectionManager)1 BeforeClass (org.junit.BeforeClass)1 Test (org.junit.Test)1