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
c544351617
. Adapt the test to the new
error message.
Change-Id: I2230655f7de62c147cd52aa35cd5ffbdced05a1c
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
parent
409b81617c
commit
462e5f3f8a
@ -106,7 +106,7 @@ public class GarbageCollectionIT extends AbstractDaemonTest {
|
|||||||
JSchException {
|
JSchException {
|
||||||
SshSession s = new SshSession(server, accounts.create("user", "user@example.com", "User"));
|
SshSession s = new SshSession(server, accounts.create("user", "user@example.com", "User"));
|
||||||
s.exec("gerrit gc --all");
|
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
|
@Test
|
||||||
|
Loading…
Reference in New Issue
Block a user