lzshlzsh commented on a change in pull request #17198:
URL: https://github.com/apache/flink/pull/17198#discussion_r707281504
##########
File path:
flink-kubernetes/src/test/java/org/apache/flink/kubernetes/kubeclient/decorators/KerberosMountDecoratorTest.java
##########
@@ -19,39 +19,66 @@
package org.apache.flink.kubernetes.kubeclient.decorators;
import org.apache.flink.configuration.SecurityOptions;
+import org.apache.flink.kubernetes.KubernetesTestUtils;
import org.apache.flink.kubernetes.kubeclient.FlinkPod;
import org.apache.flink.kubernetes.kubeclient.KubernetesPodTestBase;
import
org.apache.flink.kubernetes.kubeclient.parameters.AbstractKubernetesParametersTest;
import org.apache.flink.kubernetes.utils.Constants;
import io.fabric8.kubernetes.api.model.Container;
+import io.fabric8.kubernetes.api.model.Volume;
import io.fabric8.kubernetes.api.model.VolumeMount;
import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
import java.io.IOException;
+import java.util.List;
import java.util.stream.Collectors;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
/** General tests for the {@link KerberosMountDecoratorTest}. */
+@RunWith(Parameterized.class)
public class KerberosMountDecoratorTest extends KubernetesPodTestBase {
private KerberosMountDecorator kerberosMountDecorator;
private AbstractKubernetesParametersTest.TestingKubernetesParameters
testingKubernetesParameters;
+ private String keytabFile;
+ private String krb5ConfFile;
+
+ @Parameterized.Parameters()
+ public static Object[][] parameters() {
+ return new Object[][] {
+ {KEYTAB_FILE, KRB5_CONF_FILE}, {"mykeytab", "mykrb5.conf"},
+ };
+ }
+
+ public KerberosMountDecoratorTest(String keytabFile, String krb5ConfFile) {
+ this.keytabFile = keytabFile;
+ this.krb5ConfFile = krb5ConfFile;
+ }
Review comment:
@xintongsong Would you like to have another look ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]