This is an automated email from the ASF dual-hosted git repository.

chesnay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/master by this push:
     new 94117859d5d [FLINK-27791][tests] Prevent mocked UGI bleeding into 
other tests
94117859d5d is described below

commit 94117859d5d916b120d0458f24d4f73dfb4f0524
Author: Chesnay Schepler <[email protected]>
AuthorDate: Wed Jun 8 14:54:48 2022 +0200

    [FLINK-27791][tests] Prevent mocked UGI bleeding into other tests
---
 ...anagerTest.java => KerberosDelegationTokenManagerITCase.java} | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git 
a/flink-runtime/src/test/java/org/apache/flink/runtime/security/token/KerberosDelegationTokenManagerTest.java
 
b/flink-runtime/src/test/java/org/apache/flink/runtime/security/token/KerberosDelegationTokenManagerITCase.java
similarity index 96%
rename from 
flink-runtime/src/test/java/org/apache/flink/runtime/security/token/KerberosDelegationTokenManagerTest.java
rename to 
flink-runtime/src/test/java/org/apache/flink/runtime/security/token/KerberosDelegationTokenManagerITCase.java
index 3e6a5bd8846..f40d4f95e40 100644
--- 
a/flink-runtime/src/test/java/org/apache/flink/runtime/security/token/KerberosDelegationTokenManagerTest.java
+++ 
b/flink-runtime/src/test/java/org/apache/flink/runtime/security/token/KerberosDelegationTokenManagerITCase.java
@@ -38,8 +38,13 @@ import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
 
-/** Test for {@link DelegationTokenManager}. */
-public class KerberosDelegationTokenManagerTest {
+/**
+ * Test for {@link DelegationTokenManager}.
+ *
+ * <p>This class is an ITCase because the mocking breaks the {@link 
UserGroupInformation} class for
+ * other tests.
+ */
+public class KerberosDelegationTokenManagerITCase {
 
     @Test
     public void isProviderEnabledMustGiveBackTrueByDefault() {

Reply via email to