Skip to content

Commit

Permalink
RBAC privilege group and grant v2 api
Browse files Browse the repository at this point in the history
Signed-off-by: shaoting-huang <[email protected]>
  • Loading branch information
shaoting-huang committed Nov 21, 2024
1 parent 2342629 commit 1e6c503
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions client/client_mock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,7 @@ const (
MAlterCollection ServiceMethod = 109
MGetLoadingProgress ServiceMethod = 110
MGetLoadState ServiceMethod = 111
MAlterCollectionField ServiceMethod = 112
MOperatePrivilegeV2 ServiceMethod = 113
MOperatePrivilegeV2 ServiceMethod = 112

MCreatePartition ServiceMethod = 201
MDropPartition ServiceMethod = 202
Expand Down Expand Up @@ -1096,15 +1095,6 @@ func (m *MockServer) RestoreRBAC(ctx context.Context, req *milvuspb.RestoreRBACM
return SuccessStatus()
}

func (m *MockServer) AlterCollectionField(ctx context.Context, req *milvuspb.AlterCollectionFieldRequest) (*commonpb.Status, error) {
f := m.GetInjection(MAlterCollectionField)
if f != nil {
r, err := f(ctx, req)
return r.(*commonpb.Status), err
}
return SuccessStatus()
}

func (m *MockServer) CreatePrivilegeGroup(ctx context.Context, req *milvuspb.CreatePrivilegeGroupRequest) (*commonpb.Status, error) {
f := m.GetInjection(MCreatePrivilegeGroup)
if f != nil {
Expand Down

0 comments on commit 1e6c503

Please sign in to comment.