Skip to content

modified test to support existing search domains configured on the DUT#5234

Open
sudhirakondi wants to merge 3 commits intoopenconfig:mainfrom
sudhirakondi:sudhir-gnmi-1.24
Open

modified test to support existing search domains configured on the DUT#5234
sudhirakondi wants to merge 3 commits intoopenconfig:mainfrom
sudhirakondi:sudhir-gnmi-1.24

Conversation

@sudhirakondi
Copy link
Contributor

No description provided.

@sudhirakondi sudhirakondi requested a review from a team as a code owner March 17, 2026 17:20
@OpenConfigBot
Copy link

OpenConfigBot commented Mar 17, 2026

Pull Request Functional Test Report for #5234 / 4d02a9e

Virtual Devices

Device Test Test Documentation Job Raw Log
Arista cEOS status
gNMI-1.24: gNMI Leaf-List Update Test
Cisco 8000E status
gNMI-1.24: gNMI Leaf-List Update Test
Cisco XRd status
gNMI-1.24: gNMI Leaf-List Update Test
Juniper ncPTX status
gNMI-1.24: gNMI Leaf-List Update Test
Nokia SR Linux status
gNMI-1.24: gNMI Leaf-List Update Test
Openconfig Lemming status
gNMI-1.24: gNMI Leaf-List Update Test

Hardware Devices

Device Test Test Documentation Raw Log
Arista 7808 status
gNMI-1.24: gNMI Leaf-List Update Test
Cisco 8808 status
gNMI-1.24: gNMI Leaf-List Update Test
Juniper PTX10008 status
gNMI-1.24: gNMI Leaf-List Update Test
Nokia 7250 IXR-10e status
gNMI-1.24: gNMI Leaf-List Update Test

Help

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, 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 enhances the leaflist_update_test by making its DNS search domain verification logic more flexible. The test now correctly asserts the presence of specific search domains without being affected by other pre-configured entries on the DUT, improving its reliability and reducing potential false negatives in diverse testing environments.

Highlights

  • Test Robustness: Modified the leaflist_update_test to be more robust against pre-existing DNS search domains on the Device Under Test (DUT).
  • Verification Logic: Updated the DNS search list verification logic to iterate and check for the presence of expected domains rather than relying on exact list length or order.
  • Dependency Removal: Removed the sort package import as it is no longer needed for list comparison.
Changelog
  • feature/gnmi/tests/leaflist_update_test/leaflist_update_test.go
    • Removed the sort package import.
    • Updated the initial DNS search list verification to check for the presence of "google.com" instead of an exact match.
    • Modified the final DNS search list verification to ensure both "google.com" and "youtube.com" are present, regardless of other entries or order.
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

The pull request modifies the DNS search list verification logic in leaflist_update_test.go to be more robust. Instead of assuming an exact match or specific order, the test now checks for the presence of expected search domains within the list. This change correctly addresses the scenario where the DUT might have pre-existing search domains configured, making the test more resilient and reliable. The removal of the sort import is a direct consequence of this improved verification approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants