YARN-5875. TestTokenClientRMService#testTokenRenewalWrongUser fails. Contributed by Gergely Novák.
(cherry picked from commit d5c396ccb361e1a0cf4307ce1d1b37fae0eec250)
This commit is contained in:
parent
15f08e9298
commit
fc4c0595be
@ -123,8 +123,9 @@ public Void run() throws Exception {
|
|||||||
return null;
|
return null;
|
||||||
} catch (YarnException ex) {
|
} catch (YarnException ex) {
|
||||||
Assert.assertTrue(ex.getMessage().contains(
|
Assert.assertTrue(ex.getMessage().contains(
|
||||||
owner.getUserName() + " tries to renew a token with renewer "
|
owner.getUserName() + " tries to renew a token"));
|
||||||
+ other.getUserName()));
|
Assert.assertTrue(ex.getMessage().contains(
|
||||||
|
"with non-matching renewer " + other.getUserName()));
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user