[go: nahoru, domu]

Skip to content

Commit

Permalink
feat: Implementation of Build Failure Info: - Added message FailureIn…
Browse files Browse the repository at this point in the history
…fo field

PiperOrigin-RevId: 385847244

Source-Author: Google APIs <noreply@google.com>
Source-Date: Tue Jul 20 12:35:55 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: f84d1e2eda7021b13b6ca059bb65d96ecd2ce98b
Source-Link: googleapis/googleapis@f84d1e2
  • Loading branch information
yoshi-automation authored and jskeet committed Jul 21, 2021
1 parent b950563 commit cf7e645
Show file tree
Hide file tree
Showing 3 changed files with 665 additions and 341 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public void GetBuildRequestObject()
{
new Build.Types.Warning(),
},
FailureInfo = new Build.Types.FailureInfo(),
};
mockGrpcClient.Setup(x => x.GetBuild(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudBuildClient client = new CloudBuildClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -148,6 +149,7 @@ public void GetBuildRequestObject()
{
new Build.Types.Warning(),
},
FailureInfo = new Build.Types.FailureInfo(),
};
mockGrpcClient.Setup(x => x.GetBuildAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Build>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudBuildClient client = new CloudBuildClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -212,6 +214,7 @@ public void GetBuild()
{
new Build.Types.Warning(),
},
FailureInfo = new Build.Types.FailureInfo(),
};
mockGrpcClient.Setup(x => x.GetBuild(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudBuildClient client = new CloudBuildClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -274,6 +277,7 @@ public void GetBuild()
{
new Build.Types.Warning(),
},
FailureInfo = new Build.Types.FailureInfo(),
};
mockGrpcClient.Setup(x => x.GetBuildAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Build>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudBuildClient client = new CloudBuildClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -339,6 +343,7 @@ public void CancelBuildRequestObject()
{
new Build.Types.Warning(),
},
FailureInfo = new Build.Types.FailureInfo(),
};
mockGrpcClient.Setup(x => x.CancelBuild(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudBuildClient client = new CloudBuildClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -402,6 +407,7 @@ public void CancelBuildRequestObject()
{
new Build.Types.Warning(),
},
FailureInfo = new Build.Types.FailureInfo(),
};
mockGrpcClient.Setup(x => x.CancelBuildAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Build>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudBuildClient client = new CloudBuildClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -466,6 +472,7 @@ public void CancelBuild()
{
new Build.Types.Warning(),
},
FailureInfo = new Build.Types.FailureInfo(),
};
mockGrpcClient.Setup(x => x.CancelBuild(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
CloudBuildClient client = new CloudBuildClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -528,6 +535,7 @@ public void CancelBuild()
{
new Build.Types.Warning(),
},
FailureInfo = new Build.Types.FailureInfo(),
};
mockGrpcClient.Setup(x => x.CancelBuildAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Build>(stt::Task.FromResult(expectedResponse), null, null, null, null));
CloudBuildClient client = new CloudBuildClientImpl(mockGrpcClient.Object, null);
Expand Down
Loading

0 comments on commit cf7e645

Please sign in to comment.