feat(secretmanager): Adding expiretime samples#3294
feat(secretmanager): Adding expiretime samples#3294khilan-crest wants to merge 21 commits intoGoogleCloudPlatform:mainfrom
Conversation
…lan-crest/dotnet-docs-samples into cs_filter_cmek_samples
…est/dotnet-docs-samples into cs_expiretime_samples
Summary of ChangesHello @khilan-crest, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a comprehensive set of new sample code and corresponding integration tests for the Google Cloud Secret Manager client library. The additions cover various aspects of secret management, including lifecycle operations like setting and modifying expiration times, metadata management through annotations and labels, and advanced security features such as Customer-Managed Encryption Keys (CMEK). It also enhances the ability to query secrets and their versions using filtering capabilities, providing developers with more robust examples for interacting with the Secret Manager service. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request adds several new samples and corresponding tests for Secret Manager features, primarily focusing on secret expiration, CMEK, labels, and annotations. The changes are extensive, adding many new files. My review focuses on improving test robustness, fixing bugs in tests, and enhancing the clarity and consistency of the new sample code. I've identified a few issues, including brittle time-based assertions in tests, a resource leak bug in one test's cleanup logic, and some minor improvements for consistency and clarity in the sample code.
secretmanager/api/SecretManager.Samples.Tests/DeleteSecretExpirationTests.cs
Outdated
Show resolved
Hide resolved
secretmanager/api/SecretManager.Samples.Tests/UpdateRegionalSecretExpirationTests.cs
Outdated
Show resolved
Hide resolved
secretmanager/api/SecretManager.Samples.Tests/UpdateSecretExpirationTests.cs
Outdated
Show resolved
Hide resolved
secretmanager/api/SecretManager.Samples.Tests/CreateRegionalSecretWithExpirationTests.cs
Outdated
Show resolved
Hide resolved
secretmanager/api/SecretManager.Samples.Tests/CreateSecretWithExpirationTests.cs
Outdated
Show resolved
Hide resolved
secretmanager/api/SecretManager.Samples.Tests/DeleteSecretLabelTests.cs
Outdated
Show resolved
Hide resolved
secretmanager/api/SecretManager.Samples/CreateSecretWithExpiration.cs
Outdated
Show resolved
Hide resolved
secretmanager/api/SecretManager.Samples/DeleteRegionalSecretAnnotation.cs
Outdated
Show resolved
Hide resolved
secretmanager/api/SecretManager.Samples/DeleteRegionalSecretLabel.cs
Outdated
Show resolved
Hide resolved
…est/dotnet-docs-samples into cs_expiretime_samples
…lan-crest/dotnet-docs-samples into cs_filter_cmek_samples
…est/dotnet-docs-samples into cs_expiretime_samples
…lan-crest/dotnet-docs-samples into cs_filter_cmek_samples
…est/dotnet-docs-samples into cs_expiretime_samples
Adding expiretime samples