Skip to content

Commit

Permalink
mockgcp: add update for cloudidsendpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Pana <[email protected]>
  • Loading branch information
acpana committed Jun 7, 2024
1 parent d570de8 commit 5339ab5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mockgcp/mockcloudids/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ func (c *CloudIDSEndpointV1) PatchProjectsLocationsEndpoint(ctx context.Context,
paths := strings.Split(request.GetUpdateMask(), ",")
for _, path := range paths {
switch path {
case "threatExceptions":
curObj.ThreatExceptions = request.ProjectsLocationsEndpoint.GetThreatExceptions()
default:
return nil, status.Errorf(codes.InvalidArgument, "field %q is not yet handled in mock", path)
}
Expand Down

0 comments on commit 5339ab5

Please sign in to comment.