Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
Signed-off-by: shaoting-huang <shaoting.huang@zilliz.com>
  • Loading branch information
shaoting-huang committed Nov 20, 2024
1 parent 3f6510a commit 3347c8d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions client/client_mock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ const (
MGetLoadingProgress ServiceMethod = 110
MGetLoadState ServiceMethod = 111
MAlterCollectionField ServiceMethod = 112
MOperatePrivilegeV2 ServiceMethod = 113

MCreatePartition ServiceMethod = 201
MDropPartition ServiceMethod = 202
Expand Down Expand Up @@ -501,6 +502,15 @@ func (m *MockServer) AlterCollection(ctx context.Context, req *milvuspb.AlterCol
return SuccessStatus()
}

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

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

0 comments on commit 3347c8d

Please sign in to comment.