Skip to content

Commit

Permalink
YARN-9708. Fix Junit Test Error.
Browse files Browse the repository at this point in the history
  • Loading branch information
slfan1989 committed Aug 18, 2022
1 parent a8ec3f5 commit 9e6760b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.IOException;
import java.util.Arrays;

public class TestRouterDelegationTokenSecretManager extends AbstractSecureRouterTest {
Expand Down Expand Up @@ -83,7 +84,7 @@ public void testRouterRemoveStoredMasterKey() throws Exception {

// Get DelegationKey
DelegationKey paramKey = new DelegationKey(1234, 4321, "keyBytes".getBytes());
LambdaTestUtils.intercept(YarnException.class,
LambdaTestUtils.intercept(IOException.class,
"GetMasterKey with keyID: " + storeKey.getKeyId() + " does not exist.",
() -> secretManager.getMasterKeyByDelegationKey(paramKey));

Expand Down

0 comments on commit 9e6760b

Please sign in to comment.