From 462e5f3f8ad2e412c4f9e3f76ffc66b6df511ff7 Mon Sep 17 00:00:00 2001 From: Edwin Kempin Date: Thu, 5 Sep 2013 15:04:34 +0200 Subject: [PATCH] Fix integration test for garbage collection via SSH The error message that is returned for an SSH command if the user doesn't have a required capability was changed by c54435161718fc294fa76260fce75f7aa18f1fbe. Adapt the test to the new error message. Change-Id: I2230655f7de62c147cd52aa35cd5ffbdced05a1c Signed-off-by: Edwin Kempin --- .../com/google/gerrit/acceptance/ssh/GarbageCollectionIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/ssh/GarbageCollectionIT.java b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/ssh/GarbageCollectionIT.java index 2488537b07..e93973b389 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/ssh/GarbageCollectionIT.java +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/ssh/GarbageCollectionIT.java @@ -106,7 +106,7 @@ public class GarbageCollectionIT extends AbstractDaemonTest { JSchException { SshSession s = new SshSession(server, accounts.create("user", "user@example.com", "User")); s.exec("gerrit gc --all"); - assertError("fatal: user does not have \"runGC\" capability.", s.getError()); + assertError("Capability runGC is required to access this resource", s.getError()); } @Test