YARN-5875. TestTokenClientRMService#testTokenRenewalWrongUser fails. Contributed by Gergely Novák.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/f121d0b0 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/f121d0b0 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/f121d0b0 Branch: refs/heads/HADOOP-13345 Commit: f121d0b036fe031dd24f2f549ae5729304bfa59c Parents: 264ddb1 Author: Xiao Chen <x...@apache.org> Authored: Tue Nov 15 13:54:51 2016 -0800 Committer: Xiao Chen <x...@apache.org> Committed: Tue Nov 15 13:58:11 2016 -0800 ---------------------------------------------------------------------- .../yarn/server/resourcemanager/TestTokenClientRMService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/f121d0b0/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestTokenClientRMService.java ---------------------------------------------------------------------- diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestTokenClientRMService.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestTokenClientRMService.java index 351f068..2a4e49d 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestTokenClientRMService.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestTokenClientRMService.java @@ -123,8 +123,9 @@ public class TestTokenClientRMService { return null; } catch (YarnException ex) { Assert.assertTrue(ex.getMessage().contains( - owner.getUserName() + " tries to renew a token with renewer " - + other.getUserName())); + owner.getUserName() + " tries to renew a token")); + Assert.assertTrue(ex.getMessage().contains( + "with non-matching renewer " + other.getUserName())); throw ex; } } --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org