auth: make naming consistent

This commit is contained in:
Xiang Li
2016-06-06 20:17:28 -07:00
parent 4984d82d27
commit 83ce1051ff
14 changed files with 718 additions and 705 deletions

View File

@ -47,7 +47,7 @@ func TestUserError(t *testing.T) {
t.Fatalf("expected %v, got %v", rpctypes.ErrUserNotFound, err)
}
_, err = authapi.UserGrant(context.TODO(), "foo", "test-role-does-not-exist")
_, err = authapi.UserGrantRole(context.TODO(), "foo", "test-role-does-not-exist")
if err != rpctypes.ErrRoleNotFound {
t.Fatalf("expected %v, got %v", rpctypes.ErrRoleNotFound, err)
}