Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
test: Fix tests to include pause/resume api changes
Browse files Browse the repository at this point in the history
Since the vendoring included changes introducing PauseContainer
and ResumeContainer changes, fix the tests to satisfy the grpc api.

Signed-off-by: Archana Shinde <[email protected]>
  • Loading branch information
amshinde committed May 30, 2018
1 parent d885782 commit 704d713
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions virtcontainers/kata_agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 704d713

Please sign in to comment.