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: more fidelity for secretmanager #2320

Merged

Conversation

justinsb
Copy link
Collaborator

  • mockgcp: update secretmanager
  • mockgcp: update fidelity of secretmanager API
  • tests: add updated golden output for secretmanager

@justinsb justinsb force-pushed the mockgcp_fidelity_secret branch from 832f403 to 61c697c Compare July 19, 2024 20:01
@justinsb
Copy link
Collaborator Author

This is because the automatic update PR #2311 was failing because we were (incorrectly) responding with all fields for secret manager from mockgcp.

@justinsb justinsb force-pushed the mockgcp_fidelity_secret branch from 98e0f29 to d74bc95 Compare July 20, 2024 01:53
hasConditions := false
for _, binding := range request.Policy.Bindings {
if binding.Condition != nil {
hasConditions = true
Copy link
Collaborator

Choose a reason for hiding this comment

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

might as well break at this point. No point in going through the rest of the bindings....

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done!

@cheftako
Copy link
Collaborator

Looks good. Would like answers for Policy.Version and projectId before making it official.

justinsb added 4 commits July 22, 2024 21:12
These scenarios use setIamPolicy / getIamPolicy (predominantly), and
those methods now (correctly) return headers with our mock.
@justinsb justinsb force-pushed the mockgcp_fidelity_secret branch from d74bc95 to 1773460 Compare July 23, 2024 01:15
@cheftako
Copy link
Collaborator

/lgtm
/approve

Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cheftako

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

@google-oss-prow google-oss-prow bot merged commit 042ce34 into GoogleCloudPlatform:master Jul 24, 2024
12 of 13 checks passed
@yuwenma yuwenma added this to the 1.121 milestone Aug 3, 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