mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 16:27:50 +00:00
test: Fix tests to include pause/resume api changes
Since the vendoring included changes introducing PauseContainer and ResumeContainer changes, fix the tests to satisfy the grpc api. Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
This commit is contained in:
parent
d885782df1
commit
704d713571
@ -212,6 +212,14 @@ func (p *gRPCProxy) Version(ctx context.Context, req *pb.CheckRequest) (*pb.Vers
|
||||
|
||||
}
|
||||
|
||||
func (p *gRPCProxy) PauseContainer(ctx context.Context, req *pb.PauseContainerRequest) (*gpb.Empty, error) {
|
||||
return emptyResp, nil
|
||||
}
|
||||
|
||||
func (p *gRPCProxy) ResumeContainer(ctx context.Context, req *pb.ResumeContainerRequest) (*gpb.Empty, error) {
|
||||
return emptyResp, nil
|
||||
}
|
||||
|
||||
func gRPCRegister(s *grpc.Server, srv interface{}) {
|
||||
switch g := srv.(type) {
|
||||
case *gRPCProxy:
|
||||
|
Loading…
Reference in New Issue
Block a user