From 3497221fccdea15fc330f4d5787492af6a963ccf Mon Sep 17 00:00:00 2001 From: Xiao Chen Date: Tue, 15 Nov 2016 13:54:51 -0800 Subject: [PATCH] =?UTF-8?q?YARN-5875.=20TestTokenClientRMService#testToken?= =?UTF-8?q?RenewalWrongUser=20fails.=20Contributed=20by=20Gergely=20Nov?= =?UTF-8?q?=C3=A1k.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit d5c396ccb361e1a0cf4307ce1d1b37fae0eec250) --- .../server/resourcemanager/TestTokenClientRMService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 351f068c2bb..2a4e49d910e 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; } }