flink-instrumentation/workspace/flink-1.4.1-instrumented/flink-1.4.1/flink-runtime/src/test/java/org/apache/flink/runtime/net/SSLUtilsTest.java
/**
	 * Tests if SSL Server Context is created given a valid SSL configuration.
	 */
Tests if SSL Server Context is created given a valid SSL configuration.
Tests if SSL Server Context is created given a valid SSL configuration .
@Test
	public void testCreateSSLServerContext() throws Exception {
		Configuration serverConfig = new Configuration();
		serverConfig.setBoolean(SecurityOptions.SSL_ENABLED, true);
		serverConfig.setString(SecurityOptions.SSL_KEYSTORE, "src/test/resources/local127.keystore");
		serverConfig.setString(SecurityOptions.SSL_KEYSTORE_PASSWORD, "password");
		serverConfig.setString(SecurityOptions.SSL_KEY_PASSWORD, "password");
		SSLContext serverContext = SSLUtils.createSSLServerContext(serverConfig);
		Assert.assertNotNull(serverContext);
	}
@ Test public void testCreateSSLServerContext ( ) throws Exception { Configuration serverConfig = new Configuration ( ) ; serverConfig . setBoolean ( SecurityOptions . SSL_ENABLED , true ) ; serverConfig . setString ( SecurityOptions . SSL_KEYSTORE , "src/test/resources/local127.keystore" ) ; serverConfig . setString ( SecurityOptions . SSL_KEYSTORE_PASSWORD , "password" ) ; serverConfig . setString ( SecurityOptions . SSL_KEY_PASSWORD , "password" ) ; SSLContext serverContext = SSLUtils . createSSLServerContext ( serverConfig ) ; Assert . assertNotNull ( serverContext ) ; }
Tests if SSL Server Context is created given a valid SSL configuration.
Tests if SSL Server Context is created given a valid SSL configuration .