gnmi-3 union_replace test#5451
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 adds a new test suite for the gNMI union_replace feature, aimed at verifying core configuration management behaviors. By testing the interaction between OpenConfig (OC) and CLI-based configurations, the suite ensures that devices correctly handle configuration updates, omissions, and potential conflicts, while maintaining necessary baseline management settings. 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 the 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 counterproductive. 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
|
There was a problem hiding this comment.
Code Review
This pull request introduces a new test suite for the gNMI union_replace operation, including a detailed test plan, vendor-specific metadata, and Go implementations covering idempotent configurations, additions, changes, and hardware mismatch scenarios. The code review identified a critical logic error in the port speed verification test where the assertion logic contradicted the test's intent. Additional feedback addressed a duplicate package import, a mangled URL in the documentation, and improvements to test robustness by using t.Fatalf for terminal setup failures and ensuring the consistent use of defined timeout constants.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Pull Request Functional Test Report for #5451 / 2adc9bcVirtual Devices
Hardware Devices
|
The tests defined here will cover the basic operation of
union_replacetoadd, remove and change configuration and the scenarios defined in gNMI union_replace section 5.3.
The goal is to catch bugs related to add/remove/change actions and avoid the
complexity of attempting to test all combinations of features and their
configuration items.
In depth configuration scenarios for the full landscape of configuration data
will not be covered in tests of the union_replace feature. Instead, in depth
configuration will be covered within the tests for the given feature. For
example, detailed coverage of BGP configuration with OC and CLI will be covered
in the featureprofiles BGP feature folder.