Skip to content

Commit

Permalink
real->mock
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwenma committed Dec 5, 2024
1 parent 882d473 commit d75b3db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pkg/controller/direct/secretmanager/secret_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ func (a *Adapter) Create(ctx context.Context, op *directbase.CreateOperation) er
external := a.id.String()
status.ExternalRef = &external
status.Name = created.Name
err = op.UpdateStatus(ctx, status, nil)
if err != nil {
if err = op.UpdateStatus(ctx, status, nil); err != nil {
return err
}
// VersionAliases cannot be set in Creation, requeing the result to update the versionAlias without waiting for the reconciliation interval.
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/direct/secretmanager/secret_mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func MapStringString_ToMapStringInt64(mapCtx *direct.MapContext, in map[string]s
for k, v := range in {
stringV, err := strconv.ParseInt(v, 10, 64)
if err != nil {
mapCtx.Errorf("%s has invalid vale, expect int64, got %s", k, v)
mapCtx.Errorf("%s has invalid value, expect int64, got %s", k, v)
}
out[k] = stringV
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ Content-Type: application/json
User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/kcc/controller-manager

200 OK
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Server: ESF
Vary: Origin
Expand All @@ -362,7 +363,7 @@ X-Xss-Protection: 0
"done": true,
"name": "operations/${operationID}",
"response": {
"@type": "type.googleapis.com/google.api.serviceusage.v1beta1.ServiceIdentity",
"@type": "type.googleapis.com/mockgcp.api.serviceusage.v1beta1.ServiceIdentity",
"email": "service-${projectNumber}@gcp-sa-secretmanager.iam.gserviceaccount.com",
"uniqueId": "12345678"
}
Expand Down

0 comments on commit d75b3db

Please sign in to comment.