use of org.apache.flink.runtime.clusterframework.ContainerSpecification in project flink by apache.
the class KeytabOverlayTest method testConfigure.
@Test
public void testConfigure() throws Exception {
File keytab = tempFolder.newFile();
KeytabOverlay overlay = new KeytabOverlay(keytab);
ContainerSpecification spec = new ContainerSpecification();
overlay.configure(spec);
assertEquals(TARGET_PATH.getPath(), spec.getDynamicConfiguration().getString(SecurityOptions.KERBEROS_LOGIN_KEYTAB));
checkArtifact(spec, TARGET_PATH);
}
use of org.apache.flink.runtime.clusterframework.ContainerSpecification in project flink by apache.
the class Krb5ConfOverlayTest method testConfigure.
@Test
public void testConfigure() throws Exception {
File krb5conf = tempFolder.newFile();
Krb5ConfOverlay overlay = new Krb5ConfOverlay(krb5conf);
ContainerSpecification spec = new ContainerSpecification();
overlay.configure(spec);
assertEquals(TARGET_PATH.getPath(), spec.getSystemProperties().getString(JAVA_SECURITY_KRB5_CONF, null));
checkArtifact(spec, TARGET_PATH);
}
use of org.apache.flink.runtime.clusterframework.ContainerSpecification in project flink by apache.
the class SSLStoreOverlayTest method testConfigure.
@Test
public void testConfigure() throws Exception {
File keystore = tempFolder.newFile();
File truststore = tempFolder.newFile();
SSLStoreOverlay overlay = new SSLStoreOverlay(keystore, truststore);
ContainerSpecification spec = new ContainerSpecification();
overlay.configure(spec);
assertEquals(TARGET_KEYSTORE_PATH.getPath(), spec.getDynamicConfiguration().getString(ConfigConstants.SECURITY_SSL_KEYSTORE, null));
checkArtifact(spec, TARGET_KEYSTORE_PATH);
assertEquals(TARGET_TRUSTSTORE_PATH.getPath(), spec.getDynamicConfiguration().getString(ConfigConstants.SECURITY_SSL_TRUSTSTORE, null));
checkArtifact(spec, TARGET_TRUSTSTORE_PATH);
}
Aggregations