Convert modifyAccount to PermissionBackend
Update a few test messages to reflect check throwing a generic AuthException("modify account not permitted") instead of the prior custom text. Change-Id: Ie3ddd250289618a43d2708264863f2e850fd54cb
This commit is contained in:

committed by
David Pursehouse

parent
a3efaba361
commit
b168511335
@@ -511,7 +511,7 @@ public class AccountIT extends AbstractDaemonTest {
|
||||
|
||||
// user cannot delete email of admin
|
||||
exception.expect(AuthException.class);
|
||||
exception.expectMessage("not allowed to delete email address");
|
||||
exception.expectMessage("modify account not permitted");
|
||||
gApi.accounts().id(admin.id.get()).deleteEmail(admin.email);
|
||||
}
|
||||
|
||||
@@ -909,7 +909,7 @@ public class AccountIT extends AbstractDaemonTest {
|
||||
|
||||
// user cannot reindex any account
|
||||
exception.expect(AuthException.class);
|
||||
exception.expectMessage("not allowed to index account");
|
||||
exception.expectMessage("modify account not permitted");
|
||||
gApi.accounts().id(admin.username).index();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user