Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mockgcp: ComputeManagedSSLCertificate #2010

Merged
merged 5 commits into from
Jun 20, 2024

Conversation

acpana
Copy link
Collaborator

@acpana acpana commented Jun 14, 2024

Breaking up from #936 for the mockgcp of ComputeManagedSSLCertificate. Did a few integration changes but mostly cherry picking Justin's changes 🙏🏼

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

qq: I don't see update method, nor update.yaml test file. Is that intended?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes there is no update/ patch for this resource AFAICT.

return nil, status.Errorf(codes.Internal, "error creating sslCertificate: %v", err)
}

return s.newLRO(ctx, name.Project.ID)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest using s.StartLRO

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was mostly cherry-picked but thanks for pointing that out 💯 we should probably clarify in the guide when to use newLRO vs startGlobalLRO

mockgcp/mockcompute/globalsslcertificatesv1.go Outdated Show resolved Hide resolved
mockgcp/mockcompute/globalsslcertificatesv1.go Outdated Show resolved Hide resolved

{
"id": "000000000000000000000",
"insertTime": "2024-04-01T12:34:56.123456Z",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesting, do you know the difference between insertTime and createTime

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not quite certain, maybe it is resource specific?

@acpana acpana force-pushed the acpana/mock-mssl branch 2 times, most recently from 70f1db6 to 83021d7 Compare June 19, 2024 00:05
@acpana acpana requested a review from yuwenma June 19, 2024 00:05
OperationType: PtrTo("delete"),
User: PtrTo("[email protected]"),
}
return s.startGlobalLRO(ctx, name.Project.ID, op, func() (proto.Message, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh I like this!

@yuwenma
Copy link
Collaborator

yuwenma commented Jun 20, 2024

/lgtm
/approve

Thank you! Looks great!

@google-oss-prow google-oss-prow bot added the lgtm label Jun 20, 2024
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: yuwenma

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@acpana acpana force-pushed the acpana/mock-mssl branch from 2b68241 to 780ac68 Compare June 20, 2024 20:15
@google-oss-prow google-oss-prow bot removed the lgtm label Jun 20, 2024
@yuwenma
Copy link
Collaborator

yuwenma commented Jun 20, 2024

/lgtm

@google-oss-prow google-oss-prow bot added the lgtm label Jun 20, 2024
@google-oss-prow google-oss-prow bot merged commit 8bc7767 into GoogleCloudPlatform:master Jun 20, 2024
13 checks passed
@yuwenma yuwenma added this to the 1.120 milestone Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants