use of org.apache.flink.runtime.io.network.netty.SSLHandlerFactory in project flink by apache.
the class SSLUtilsTest method testRESTServerSSL.
// ------------------------ server --------------------------
/**
* Tests that REST Server SSL Engine is created given a valid SSL configuration.
*/
@Test
public void testRESTServerSSL() throws Exception {
Configuration serverConfig = createRestSslConfigWithKeyStore();
SSLHandlerFactory ssl = SSLUtils.createRestServerSSLEngineFactory(serverConfig);
assertNotNull(ssl);
}
use of org.apache.flink.runtime.io.network.netty.SSLHandlerFactory in project flink by apache.
the class SSLUtilsTest method testRESTClientSSL.
// ------------------------ REST client --------------------------
/**
* Tests if REST Client SSL is created given a valid SSL configuration.
*/
@Test
public void testRESTClientSSL() throws Exception {
Configuration clientConfig = createRestSslConfigWithTrustStore();
SSLHandlerFactory ssl = SSLUtils.createRestClientSSLEngineFactory(clientConfig);
assertNotNull(ssl);
}
Aggregations