Conversation
Summary of ChangesHello, 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 new test suite to validate the trust bundle rotation functionality within the Certz service. It ensures that the system correctly handles both valid and invalid trust bundle updates, maintaining secure connectivity across different cryptographic key types. The implementation leverages existing internal service utilities to manage test data and perform rigorous validation of the rotation process. 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. Footnotes
|
Pull Request Functional Test Report for #5291 / 21c3b20Virtual Devices
Hardware Devices
|
There was a problem hiding this comment.
Code Review
This pull request introduces a comprehensive test suite for GNSI Certz trust bundle rotation, implementing both positive and negative test cases for RSA and ECDSA key types. The review feedback identifies several opportunities to improve the robustness and idiomatic nature of the Go code. Specifically, it recommends removing global state variables to ensure test independence, replacing fragile regex-based script patching with parameterized calls, and using the correct Ondatra API for device addresses. Additionally, it suggests removing redundant logging timestamps and cleanup calls to streamline the test execution.
feature/gnsi/certz/tests/trust_bundle_rotation/trust_bundle_rotation_test.go
Show resolved
Hide resolved
feature/gnsi/certz/tests/trust_bundle_rotation/trust_bundle_rotation_test.go
Outdated
Show resolved
Hide resolved
feature/gnsi/certz/tests/trust_bundle_rotation/trust_bundle_rotation_test.go
Show resolved
Hide resolved
feature/gnsi/certz/tests/trust_bundle_rotation/trust_bundle_rotation_test.go
Show resolved
Hide resolved
feature/gnsi/certz/tests/trust_bundle_rotation/trust_bundle_rotation_test.go
Outdated
Show resolved
Hide resolved
cd38a39 to
c75132e
Compare
README Location: https://github.com/openconfig/featureprofiles/blob/main/feature/gnsi/certz/tests/trust_bundle_rotation/README.md
Raised an issue for the failure https://partnerissuetracker.corp.google.com/u/1/issues/498449054
Logs Attached.